String createPageConfigurationName = (String)ERDirectToWeb.d2wContextValueForKey("createConfigurationName",
entityNameForNewInstances,
extraValues);
if (log.isDebugEnabled())
log.debug("Create Page Config: " + createPageConfigurationName + " for entity: " + entityNameForNewInstances+" - "+extraValues);
EditPageInterface epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed(createPageConfigurationName,followPage.session());
epi.setObject(newEO);
if (postCreateNextPageDelegate == null) {
ERDEditOwnedRelationship.PostSaveDelegate postSaveDelegate = new PostSaveDelegate();
postSaveDelegate.postRelationshipKeys=postRelationshipKeys;
postSaveDelegate.object=object;
postSaveDelegate.key=key;
postSaveDelegate.savedObject=newEO;
postSaveDelegate.localContext=localContext;
postSaveDelegate.followPage=followPage;
epi.setNextPageDelegate(postSaveDelegate);
} else {
epi.setNextPageDelegate(postCreateNextPageDelegate);
}
return (WOComponent)epi;
}