EOEntity targetEntity=e.entity();
NSArray<String> toManyKeys=NSArray.componentsSeparatedByString(qualifier.key(),".");
EORelationship targetRelationship=null;
for (int i=0; i<toManyKeys.count()-1;i++) {
targetRelationship= targetEntity.anyRelationshipNamed(toManyKeys.objectAtIndex(i));
targetEntity=targetRelationship.destinationEntity();
}
targetRelationship=targetEntity.relationshipNamed(toManyKeys.lastObject());
targetEntity=targetRelationship.destinationEntity();