public void addPreventionWithExts(Prevention prevention, HashMap<String, String> exts) {
    if (prevention == null) return;

    preventionDao.persist(prevention);
    if (exts != null) {
      for (String keyval : exts.keySet()) {
        if (StringUtils.filled(keyval) && StringUtils.filled(exts.get(keyval))) {
          PreventionExt preventionExt = new PreventionExt();
          preventionExt.setPreventionId(prevention.getId());
          preventionExt.setKeyval(keyval);
          preventionExt.setVal(exts.get(keyval));
          preventionExtDao.persist(preventionExt);
        }
      }
    }
  }
 public ArrayList<String> getPreventionTypeList(LoggedInInfo loggedInInfo) {
   if (preventionTypeList.isEmpty()) {
     PreventionDisplayConfig pdc = PreventionDisplayConfig.getInstance(loggedInInfo);
     for (HashMap<String, String> prevTypeHash : pdc.getPreventions(loggedInInfo)) {
       if (prevTypeHash != null && StringUtils.filled(prevTypeHash.get("name"))) {
         preventionTypeList.add(prevTypeHash.get("name").trim());
       }
     }
   }
   return preventionTypeList;
 }