if (redtm.getObjects(tmse.getSelection()).size() != 0) {
selectedRepositoryEntries = redtm.getObjects(tmse.getSelection());
if (deleteRepositoryMailCtr != null) {
deleteRepositoryMailCtr.dispose();
}
MailTemplate deleteMailTemplate = createMailTemplate(pT.translate(KEY_EMAIL_SUBJECT), pT.translate(KEY_EMAIL_BODY));
deleteMailTemplate.addToContext("lastloginduration", Integer.toString(RepositoryDeletionManager.getInstance().getLastUsageDuration() ));
deleteMailTemplate.addToContext("durationdeleteemail", Integer.toString(RepositoryDeletionManager.getInstance().getDeleteEmailDuration() ));
deleteRepositoryMailCtr = new MailNotificationEditController(getWindowControl(), ureq, deleteMailTemplate, true);
deleteRepositoryMailCtr.addControllerListener(this);
cmc = new CloseableModalController(getWindowControl(), pT.translate("close"), deleteRepositoryMailCtr.getInitialComponent());
cmc.activate();
} else {