agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/model/serialization/MetadataItemSerializer.java
/**
     * Format {@link Document} without the permissions, tenantId, or _id field
     * @param document {@link Document} to format
     * @return {@link Document} with removed fields
     */
Format  Document without the permissions, tenantId, or _id field
@param document  Document to format
@return  Document with removed fields
Format Document without the permissions tenantId or _id field @param document Document to format @return Document with removed fields
public Document formatDocumentResult(Document document){
        document.remove("permissions");
        document.remove("_id");
        document.remove("tenantId");
        return document;
    }
public Document formatDocumentResult ( Document document ) { document . remove ( "permissions" ) ; document . remove ( "_id" ) ; document . remove ( "tenantId" ) ; return document ; }
Format {@link Document} without the permissions, tenantId, or _id field
 @param document {@link Document} to format
 @return {@link Document} with removed fields
Format { @link Document } without the permissions tenantId or _id field @param document { @link Document } to format @return { @link Document } with removed fields