@Override
    public final GeoDocument find(final String placeName) {
        final Query searchQuery =
                new Query(Criteria.where("name").is(placeName));
        final GeoDocumentMongo geoDocument =
                mongoTemplate.findOne(searchQuery, GeoDocumentMongo.class);
        if (geoDocument == null) {
            return null;
        }
        final GeoCodeItem item = GeoDocumentMongoFactory.getInstance().
                createGeoCodeItem(geoDocument);
        geoDocument.setGeoItem(item);
        return geoDocument;
    }
@ Override public final GeoDocument find ( final String placeName ) { final Query searchQuery = new Query ( Criteria . where ( "name" ) . is ( placeName ) ) ; final GeoDocumentMongo geoDocument = mongoTemplate . findOne ( searchQuery , GeoDocumentMongo . class ) ; if ( geoDocument == null ) { return null ; } final GeoCodeItem item = GeoDocumentMongoFactory . getInstance ( ) . createGeoCodeItem ( geoDocument ) ; geoDocument . setGeoItem ( item ) ; return geoDocument ; }
{@inheritDoc}