agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/dao/MetadataDao.java
/**
     * Find the {@link MetadataItem} with the provided {@link Bson} filter
     *
     * @param query {@link Bson} filter to search the collection with
     * @return {@link MetadataItem} matching the {@link Bson} filter, null if nothing found
     */
Find the  MetadataItem with the provided  Bson filter
@param query  Bson filter to search the collection with
@return  MetadataItem matching the  Bson filter, null if nothing found
Find the MetadataItem with the provided Bson filter @param query Bson filter to search the collection with @return MetadataItem matching the Bson filter null if nothing found
public MetadataItem findSingleMetadataItem(Bson query) {
        MongoCollection<MetadataItem> metadataItemMongoCollection;
        metadataItemMongoCollection = getDefaultMetadataItemCollection();
        try {
            return metadataItemMongoCollection.find(query).first();
        } catch (Exception e) {
            return null;
        }
    }
public MetadataItem findSingleMetadataItem ( Bson query ) { MongoCollection < MetadataItem > metadataItemMongoCollection ; metadataItemMongoCollection = getDefaultMetadataItemCollection ( ) ; try { return metadataItemMongoCollection . find ( query ) . first ( ) ; } catch ( Exception e ) { return null ; } }
Find the {@link MetadataItem} with the provided {@link Bson} filter
 @param query {@link Bson} filter to search the collection with
 @return {@link MetadataItem} matching the {@link Bson} filter, null if nothing found
Find the { @link MetadataItem } with the provided { @link Bson } filter @param query { @link Bson } filter to search the collection with @return { @link MetadataItem } matching the { @link Bson } filter null if nothing found