if (selection != null && selection instanceof EOEnterpriseObject) { EOEnterpriseObject eo = (EOEnterpriseObject)selection; if (eo.editingContext() != editingContext()) { selection = ERXEOControlUtilities.localInstanceOfObject(editingContext(), eo); } }
    public Object selection() {        if (_selection == null) {            Object object = realSourceObject();            String key = realRelationshipKey();            Object selection = NSKeyValueCoding.Utility.valueForKey(object,key);            setSelection(selection);        }        // deal with isMandatory        if ((_selection==null) && !isMandatory()) {            setSelection(NO_SELECTION_STRING);        }        return _selection;    }