/**
  * @return The mail template containing the configured mail or null if user decided to not send a
  *     mail
  */
 public MailTemplate getMailTemplate() {
   if (mailForm.sendMailSwitchEnabled()) {
     return mailTemplate;
   } else {
     return null;
   }
 }
 public boolean isSendMail() {
   return mailForm.sendMailSwitchEnabled();
 }