code: public static void ensureValidResource(JsonNode resource) {
  		if (!resource.has(JSONAPISpecConstants.DATA) && !resource.has(JSONAPISpecConstants.META)) {
  			throw new InvalidJsonApiResourceException();
  		}
  	}
docs: Asserts that provided resource has required 'data' or 'meta' node.
  @param resource resource