if (((EOEnterpriseObject)eo).editingContext()==null || editingContext()==null) throw new RuntimeException("******** Attempted to link to EOs through "+key+" when one of them was not in an editing context: "+this+" and "+eo); throw new RuntimeException("******** Attempted to link to EOs through "+key+" in different editing contexts: "+this+" and "+eo);
if (((EOEnterpriseObject)eo).editingContext()==null || editingContext()==null) { cat.warn("******** Attempted to link to EOs through "+key+" when one of them was not in an editing context: "+this+":"+editingContext()+" and "+eo+ ":" + ((EOEnterpriseObject)eo).editingContext());   } else { throw new RuntimeException("******** Attempted to link to EOs through "+key+" in different editing contexts: "+this+" and "+eo); }
     public void addObjectToBothSidesOfRelationshipWithKey(EORelationshipManipulation eo, String key) {        if (eo!=null &&            ((EOEnterpriseObject)eo).editingContext()!=editingContext() &&            !(editingContext() instanceof EOSharedEditingContext) &&            !(((EOEnterpriseObject)eo).editingContext() instanceof EOSharedEditingContext)) {            if (((EOEnterpriseObject)eo).editingContext()==null || editingContext()==null)                throw new RuntimeException("******** Attempted to link to EOs through "+key+" when one of them was not in an editing context: "+this+" and "+eo);            throw new RuntimeException("******** Attempted to link to EOs through "+key+" in different editing contexts: "+this+" and "+eo);        }        super.addObjectToBothSidesOfRelationshipWithKey(eo,key);    }