if (_localRelativeSourceObject() instanceof EOEnterpriseObject) {
if (_localSourceObjectIsEO()) {
    public void takeValuesFromRequest(WORequest r, WOContext c) {        // we want to pass the validation here for the case where we are creating a new object        // and are given isMandatory=0 on a mandatory relationship to force users to pick one..        super.takeValuesFromRequest(r, c);        if (_localRelativeSourceObject() instanceof EOEnterpriseObject) {            EOEnterpriseObject localObject = (EOEnterpriseObject)_localRelativeSourceObject();            Object value = localObject.valueForKey(_localRelativeRelationshipKey());            try {                localObject.validateValueForKey(value, _localRelativeRelationshipKey());            } catch (NSValidation.ValidationException eov) {                parent().validationFailedWithException(eov, value, _localRelativeRelationshipKey());            }        }    }