/**
  * Queries the service for coordinates.
  * 
  * @param Object $entity The entity
  * @param Geographical $geographical The greographical annotation
  * @param GeographicalQuery $geographicalQuery The geogrphical query annotation
  */
 private function queryCoordinates($entity, $geographical, $geographicalQuery)
 {
     $queryMethod = $geographicalQuery->getMethod();
     $query = $entity->{$queryMethod}();
     $result = $this->queryService->queryForCoordinates($query);
     $latSetter = 'set' . $geographical->getLat();
     $lngSetter = 'set' . $geographical->getLng();
     $entity->{$latSetter}($result->getLatitude());
     $entity->{$lngSetter}($result->getLongitude());
 }