The documentation contains wrong (old?) methods, like
hibQuery.setSpatialSearchCenter(centerLatitude, centerLongitude);
or
new DistanceSortField(centerLatitude,centerLongitude)
I could fix this, if you like.