public int anonymizeHelperAddresses() {
   SessionHolder sessionHolder = SessionManager.getInstance().registerSession(this, null);
   try {
     sessionHolder.beginTransaction();
     Query qry =
         sessionHolder.createQuery(
             "UPDATE "
                 + Helper.class.getSimpleName()
                 + " SET "
                 + Helper.ATTR_MAIL_ADDRESS
                 + " = :address WHERE "
                 + Helper.ATTR_MAIL_ADDRESS
                 + " IS NOT NULL AND "
                 + Helper.ATTR_MAIL_ADDRESS
                 + " <> ''");
     qry.setParameter(
         "address",
         AppConfiguration.getInstance()
             .getConfigurationValue(AppConfigurationValues.PROCESS_TEST_MAIL));
     int rows = qry.executeUpdate();
     sessionHolder.commitTransaction();
     return rows;
   } catch (Exception e) {
     sessionHolder.rollbackTransaction();
     ;
     throw new ResourcePlanningException(
         "helper addresses could not be anonymized : " + e.getMessage());
   } finally {
     SessionManager.getInstance().unregisterSession(sessionHolder);
   }
 }
 public String constructBody() {
   return new HtmlGenerator(true)
       .withParagraph(helperGreeting(getHelper()))
       .withParagraph(
           AppConfiguration.getInstance()
               .getText(
                   this,
                   "body",
                   getPosition().getDescription(),
                   getPosition().getDomain().getName()))
       .withParagraph(sincerely())
       .render();
 }
 public String constructSubject() {
   return AppConfiguration.getInstance().getText(this, "subject");
 }