agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/search/JsonHandler.java
/**
     * Get {@link JsonNode} schemaId field
     *
     * @param schemaNode {@link JsonNode} to get schemaId from
     * @return {@link String} of schemaId
     */
Get  JsonNode schemaId field
@param schemaNode  JsonNode to get schemaId from
@return  String of schemaId
Get JsonNode schemaId field @param schemaNode JsonNode to get schemaId from @return String of schemaId
public String parseSchemaIdToString(JsonNode schemaNode) {
        if (schemaNode.has("schemaId") && schemaNode.get("schemaId").isTextual()) {
            Document schemaDoc = MetadataSchemaDao.getInstance().findOne(new Document("uuid", schemaNode.get("schemaId").asText())
                    .append("tenantId", TenancyHelper.getCurrentTenantId()));
            Document schemaDoc = metadataValidation.checkSchemaIdExists(schemaNode.get("schemaId").asText());
            where to check for permission?
            if (schemaDoc != null)
            return schemaNode.get("schemaId").asText();
        }
        return null;
    }
public String parseSchemaIdToString ( JsonNode schemaNode ) { if ( schemaNode . has ( "schemaId" ) && schemaNode . get ( "schemaId" ) . isTextual ( ) ) { return schemaNode . get ( "schemaId" ) . asText ( ) ; } return null ; }
Get {@link JsonNode} schemaId field
 @param schemaNode {@link JsonNode} to get schemaId from
 @return {@link String} of schemaId
Get { @link JsonNode } schemaId field @param schemaNode { @link JsonNode } to get schemaId from @return { @link String } of schemaId
//            if (metadataValidation == null) //                metadataValidation = new MetadataValidation(); // //            Document schemaDoc = MetadataSchemaDao.getInstance().findOne(new Document("uuid", schemaNode.get("schemaId").asText()) //                    .append("tenantId", TenancyHelper.getCurrentTenantId())); //            Document schemaDoc = metadataValidation.checkSchemaIdExists(schemaNode.get("schemaId").asText()); //where to check for permission? //            if (schemaDoc != null)