String entityName = d2wcontext.entity().name(); EOEnterpriseObject newObject = _newObjectWithEntityNamed(entityName, peerContext);
EOEnterpriseObject newObject = _newObjectWithEntity(d2wcontext.entity(), peerContext);
    public EditPageInterface editPageForNewObjectWithConfigurationNamed(String configurationName, WOSession session) {	EditPageInterface epi = (EditPageInterface) pageForConfigurationNamed(configurationName, session);	EOEditingContext peerContext = ERXExtensions.newEditingContext(session.defaultEditingContext()								       .parentObjectStore());	D2WContext d2wcontext = ((D2WPage)epi).d2wContext();	String entityName = d2wcontext.entity().name();	EOEnterpriseObject newObject = _newObjectWithEntityNamed(entityName, peerContext);	epi.setObject(newObject);	peerContext.hasChanges();	return epi;    }