private List<Resource> resourcesOf(JsonNode resourceNodes, boolean isNotType) {
        List<Resource> resources = new LinkedList<Resource>();

        if (resourceNodes.isArray()) {
            for (JsonNode resource : resourceNodes) {
                resources.add(new Resource(resource.asText()).withIsNotType(isNotType));
            }
        } else {
            resources.add(new Resource(resourceNodes.asText()).withIsNotType(isNotType));
        }

        return resources;
    }
Generates a list of resources from the Resource Json Node
using the is not type specified.

@param resourceNodes
           the resource Json node to be parsed.
@param isNotType
           whether the nodes being parsed are isNotType.
@return the list of resources.
aws-java-sdk-core/src/main/java/com/amazonaws/auth/policy/internal/JsonPolicyReader.java