code: private static StructrTypeDefinition determineType(final StructrSchemaDefinition root, final String name, final Map<String, Object> source) {
  
  		if (source.containsKey(JsonSchema.KEY_RELATIONSHIP)) {
  
  			final StructrRelationshipTypeDefinition def = new StructrRelationshipTypeDefinition(root, name);
  			def.deserialize(source);
  
  			return def;
  
  		} else {
  
  			final StructrNodeTypeDefinition def = new StructrNodeTypeDefinition(root, name);
  			def.deserialize(source);
  
  			return def;
  		}
  	}
docs: ----- private methods -----