public WOComponent delete(WOComponent sender) {
EOEnterpriseObject eo = object(sender);
D2WContext context = d2wContext(sender);
String pageName = (String)context.valueForKey("confirmDeleteConfigurationName");
ERD2WMessagePage epi = (ERD2WMessagePage) Factory.bugTracker().pageForConfigurationNamed(pageName, session(sender));
epi.setObject(eo);
String message = ERXLocalizer.currentLocalizer().localizedTemplateStringForKeyWithObject("ERDTrashcan.confirmDeletionMessage", epi.d2wContext());
epi.setMessage(message);
epi.setCancelPage(sender.context().page());
epi.setConfirmDelegate(new ERDDeletionDelegate(eo, sender.context().page()));
return epi;
}