/** Copies a relationship from one EO to another using the name of the relationship */
public static void replicateRelationshipFromEOToEO(EOEnterpriseObject r1, EOEnterpriseObject r2, String relationshipName){
for(Enumeration e = ((NSArray)r1.valueForKey(relationshipName)).objectEnumerator(); e.hasMoreElements();){
ERXReplicableInterface replicableTarget = (ERXReplicableInterface)e.nextElement();
r2.addObjectToBothSidesOfRelationshipWithKey(replicableTarget.replicate(r2.editingContext()), relationshipName);
}
}
/** Copies a relationship from one EO to another using the name of the relationship */
public static void deplicateRelationshipFromEO(EOEnterpriseObject r1, String relationshipName){