return eo != null && ec != null && eo.editingContext() != null && !ec.equals(eo.editingContext()) ? EOUtilities.localInstanceOfObject(ec, eo) : eo;
return ERXEOControlUtilities.localInstanceOfObject(ec, eo);
    public static EOEnterpriseObject localInstanceOfObject(EOEditingContext ec, EOEnterpriseObject eo) {        return eo != null && ec != null && eo.editingContext() != null && !ec.equals(eo.editingContext()) ?        EOUtilities.localInstanceOfObject(ec, eo) : eo;    }