/**
  * Query for a Poi with a given id eagerly.
  *
  * @param id The id of the Poi to load.
  * @return The queried Poi.
  */
 public Poi queryForId(Long id) {
   Poi poi = poiDao.queryForId(id);
   if (poi == null) {
     return null;
   }
   poiTypeDao.refresh(poi.getType());
   poi.setTags(loadLazyForeignCollection(poi.getTags()));
   poi.getType().setTags(loadLazyForeignCollection(poi.getType().getTags()));
   return poi;
 }