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