private Map<String,Object> parseIncluded(JsonNode parent) throws IOException, IllegalAccessException, InstantiationException {
  Map<String,Object> result=new HashMap<>();
  if (parent.has(INCLUDED)) {
    List<Resource> includedResources=getIncludedResources(parent);
    if (!includedResources.isEmpty()) {
      for (      Resource includedResource : includedResources) {
        result.put(includedResource.getIdentifier(),includedResource.getObject());
      }
      ArrayNode includedArray=(ArrayNode)parent.get(INCLUDED);
      for (int i=0; i < includedResources.size(); i++) {
        Resource resource=includedResources.get(i);
        JsonNode node=includedArray.get(i);
        handleRelationships(node,resource.getObject());
      }
    }
  }
  return result;
}

private Map < String , Object > parseIncluded ( JsonNode parent ) throws IOException , IllegalAccessException , InstantiationException { Map < String , Object > result = new HashMap < > ( ) ; if ( parent . has ( INCLUDED ) ) { List < Resource > includedResources = getIncludedResources ( parent ) ; if ( ! includedResources . isEmpty ( ) ) { for ( Resource includedResource : includedResources ) { result . put ( includedResource . getIdentifier ( ) , includedResource . getObject ( ) ) ; } ArrayNode includedArray = ( ArrayNode ) parent . get ( INCLUDED ) ; for ( int i = 0 ; i < includedResources . size ( ) ; i ++ ) { Resource resource = includedResources . get ( i ) ; JsonNode node = includedArray . get ( i ) ; handleRelationships ( node , resource . getObject ( ) ) ; } } } return result ; }
converts included data and returns it as pairs of its unique identifiers and converted types .
