if (log.isDebugEnabled()) { log.debug("Setting default delegate on editing context: " + ec + " allows validation: " + validation);
if (log.isDebugEnabled()) { log.debug("Setting default delegate on editing context: " + ec + " allows validation: " + validation); } if (ec != null) { if (validation) { ec.setDelegate(defaultEditingContextDelegate()); } else { ec.setDelegate(defaultNoValidationDelegate()); } } else { log.warn("Attempting to set a default delegate on a null ec!"); }
        public void setDefaultDelegateOnEditingContext(EOEditingContext ec, boolean validation) {            if (log.isDebugEnabled()) {                log.debug("Setting default delegate on editing context: " + ec                          + " allows validation: " + validation);            }            if (ec != null) {                if (validation) {                    ec.setDelegate(defaultEditingContextDelegate());                } else {                    ec.setDelegate(defaultNoValidationDelegate());                }            } else {                log.warn("Attempting to set a default delegate on a null ec!");            }        }