EOEnterpriseObject eo = (EOEnterpriseObject)objectKeyPathValue();
EditPageInterface epi = null;
if (eo == null) {
parent().validationFailedWithException(new NSValidation.ValidationException(errorMessage()),objectPropertyValue(), key());
} else {
String editConfigurationName = (String)ERDirectToWeb.d2wContextValueForKey("editConfigurationName", eo.entityName());
epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed(editConfigurationName, session());
epi.setNextPage(context().page());
if (((ERXEnterpriseObject)eo).isNewObject())
localContext = ERXEC.newEditingContext(object().editingContext(), false);
else