public static void deplicateRelationshipFromEO(EOEnterpriseObject r1, String relationshipName){
//System.out.println("r1 "+r1);
//System.out.println("relationshipName "+relationshipName);
//System.out.println("array "+r1.valueForKey(relationshipName));
for(Enumeration e = ((NSArray)r1.valueForKey(relationshipName)).objectEnumerator(); e.hasMoreElements();){
ERXReplicableInterface replicableTarget = (ERXReplicableInterface)e.nextElement();
//System.out.println("replicableTarget "+replicableTarget);
r1.removeObjectFromBothSidesOfRelationshipWithKey((EOEnterpriseObject)replicableTarget,
relationshipName);
replicableTarget.deplicate();
}
}