added getOrCreateRelationshipWithUniqueFactory