</BUG>
epi.setNextPage(context().page());
result = (WOComponent)epi;
} else {
<BUG>EditPageInterface editpageinterface = D2W.factory().editPageForEntityNamed(localInstance().entityName(), session());

editpageinterface.setObject(localInstance());
</BUG>
editpageinterface.setNextPage(context().page());
result = (WOComponent)editpageinterface;

public WOComponent editObjectAction() {
WOComponent result = null;
String editConfigurationName=(String)d2wContext().valueForKey("editConfigurationName");
if(editConfigurationName != null){
EditPageInterface epi=(EditPageInterface)D2W.factory().pageForConfigurationNamed(editConfigurationName,session());
epi.setObject(localInstanceOfObject());
epi.setNextPage(context().page());
result = (WOComponent)epi;
} else {
EditPageInterface editpageinterface = D2W.factory().editPageForEntityNamed(object().entityName(), session());
editpageinterface.setObject(localInstanceOfObject());
editpageinterface.setNextPage(context().page());
result = (WOComponent)editpageinterface;
