private Object parseRelationship(JsonNode relationshipDataNode,Class<?> type) throws IOException, IllegalAccessException, InstantiationException {
  if (ValidationUtils.isRelationshipParsable(relationshipDataNode)) {
    String identifier=createIdentifier(relationshipDataNode);
    if (resourceCache.contains(identifier)) {
      return resourceCache.get(identifier);
    }
 else {
      resourceCache.lock();
      try {
        return readObject(relationshipDataNode,type,true);
      }
  finally {
        resourceCache.unlock();
      }
    }
  }
  return null;
}

private Object parseRelationship ( JsonNode relationshipDataNode , Class < ? > type ) throws IOException , IllegalAccessException , InstantiationException { if ( ValidationUtils . isRelationshipParsable ( relationshipDataNode ) ) { String identifier = createIdentifier ( relationshipDataNode ) ; if ( resourceCache . contains ( identifier ) ) { return resourceCache . get ( identifier ) ; } else { resourceCache . lock ( ) ; try { return readObject ( relationshipDataNode , type , true ) ; } finally { resourceCache . unlock ( ) ; } } } return null ; }
creates relationship object by consuming provided ' data ' node .
