log.warn("Using default delete template: ERD2WConfirmPageTemplate, set the 'confirmDeleteConfigurationName' key to something more sensible");
nextPage = (ConfirmPageInterface) pageWithName("ERD2WConfirmPageTemplate");
} else {
nextPage = (ConfirmPageInterface) D2W.factory().pageForConfigurationNamed(confirmDeleteConfigurationName, session());
}
nextPage.setConfirmDelegate(new ERDDeletionDelegate(object(), dataSource(), context().page()));
nextPage.setCancelDelegate(new ERDDeletionDelegate(null, null, context().page()));
if (nextPage instanceof InspectPageInterface) {
((InspectPageInterface) nextPage).setObject(object());
} else {
String message = ERXLocalizer.currentLocalizer().localizedTemplateStringForKeyWithObject("ERD2WList.confirmDeletionMessage", d2wContext());
nextPage.setMessage(message);