ERXUtilities.addObjectToObjectOnBothSidesOfRelationshipWithKey(eo,(EOEnterpriseObject)o, keyPath);
ERXUtilities.addObjectToObjectOnBothSidesOfRelationshipWithKey((EOEnterpriseObject)o, eo, key);
        public void setValueInObject(EOEnterpriseObject eo) {            Object defaultValue = this.stringValue;            EOEditingContext ec = eo.editingContext();            if(stringValue.charAt(0) == '@') { // computed key                if(stringValue.equals("@new")) {                    EOClassDescription cd = EOClassDescription.classDescriptionForEntityName(relationshipEntityName);                    EOEnterpriseObject newObject = cd.createInstanceWithEditingContext(eo.editingContext(), null);                    ec.insertObject(newObject);                    eo.addObjectToBothSidesOfRelationshipWithKey(newObject,key);                } else if(stringValue.startsWith("@threadStorage.")) {                    String keyPath = stringValue.substring("@threadStorage.".length());                    Object o = ERXThreadStorage.valueForKey(keyPath);                    if(o != null) {                        if(o instanceof EOEnterpriseObject) {                            ERXUtilities.addObjectToObjectOnBothSidesOfRelationshipWithKey(eo,(EOEnterpriseObject)o, keyPath);                        } else if(o instanceof NSArray) {                            NSArray newObjects = (NSArray)o;                            for(Enumeration e = newObjects.objectEnumerator(); e.hasMoreElements();) {                                ERXUtilities.addObjectToObjectOnBothSidesOfRelationshipWithKey(eo,(EOEnterpriseObject)e.nextElement(),keyPath);                            }                        }                    }                }            } else {                if (adaptorType == AdaptorNumberType) {                    defaultValue = new Integer(Integer.parseInt(stringValue));                }                EOGlobalID gid = EOKeyGlobalID.globalIDWithEntityName(relationshipEntityName, new Object[] {defaultValue});                EOEnterpriseObject fault = ec.faultForGlobalID(gid,ec);                eo.addObjectToBothSidesOfRelationshipWithKey(fault,key);            }        }