exception = e;
}
if(exception != null) {
if (exception instanceof ERXValidationException) {
ERXValidationException ex = (ERXValidationException) exception;
D2WContext context = d2wContext();
Object o = ex.object();
if (o instanceof EOEnterpriseObject) {
EOEnterpriseObject eo = (EOEnterpriseObject) o;
context.takeValueForKey(eo.entityName(), "entityName");
context.takeValueForKey(ex.propertyKey(), "propertyKey");
}
((ERXValidationException) exception).setContext(context);
log.info("Validation Exception: " + exception + exception.getMessage());
editingContext.revert();