@SuppressWarnings("unchecked")
 private void checkFields() throws ControllerException {
   try {
     super.checkFields(
         new String[] {"systemOid", "title", "content"},
         new String[] {
           this.getText("MESSAGE.CORE_PROG001D0010A_systemOid") + "<BR/>",
           this.getText("MESSAGE.CORE_PROG001D0010A_title") + "<BR/>",
           this.getText("MESSAGE.CORE_PROG001D0010A_content") + "<BR/>"
         },
         new Class[] {
           SelectItemFieldCheckUtils.class,
           NotBlankFieldCheckUtils.class,
           NotBlankFieldCheckUtils.class
         },
         this.getFieldsId());
   } catch (InstantiationException e) {
     e.printStackTrace();
     throw new ControllerException(e.getMessage().toString());
   } catch (IllegalAccessException e) {
     e.printStackTrace();
     throw new ControllerException(e.getMessage().toString());
   }
   if (this.getFields().get("content").length() > 2000
       || this.getFields().get("content").indexOf("twitter") == -1
       || this.getFields().get("content").indexOf("data-widget-id") == -1) {
     this.getFieldsId().add("content");
     throw new ControllerException(
         this.getText("MESSAGE.CORE_PROG001D0010A_contentTwitterWidget") + "<BR/>");
   }
 }
 @SuppressWarnings("unchecked")
 private void checkFields() throws ControllerException {
   try {
     super.checkFields(
         new String[] {"roleOid"},
         new String[] {this.getText("MESSAGE.BSC_PROG004D0003Q_roleOid") + "<BR/>"},
         new Class[] {SelectItemFieldCheckUtils.class},
         this.getFieldsId());
   } catch (InstantiationException e) {
     e.printStackTrace();
     throw new ControllerException(e.getMessage().toString());
   } catch (IllegalAccessException e) {
     e.printStackTrace();
     throw new ControllerException(e.getMessage().toString());
   }
 }
 @SuppressWarnings("unchecked")
 private void checkFieldsForParamEdit() throws ControllerException {
   try {
     super.checkFields(
         new String[] {"templateVar", "objectVar"},
         new String[] {
           this.getText("MESSAGE.CORE_PROG001D0007E_S00_templateVar") + "<BR/>",
           this.getText("MESSAGE.CORE_PROG001D0007E_S00_objectVar") + "<BR/>"
         },
         new Class[] {IdFieldCheckUtils.class, IdFieldCheckUtils.class},
         this.getFieldsId());
   } catch (InstantiationException e) {
     e.printStackTrace();
     throw new ControllerException(e.getMessage().toString());
   } catch (IllegalAccessException e) {
     e.printStackTrace();
     throw new ControllerException(e.getMessage().toString());
   }
 }
 @SuppressWarnings("unchecked")
 private void checkFields() throws ControllerException, Exception {
   try {
     super.checkFields(
         new String[] {"visionOid", "frequency", "organizationOid", "dateType"},
         new String[] {
           this.getText("MESSAGE.BSC_PROG003D0003Q_visionOid") + "<BR/>",
           this.getText("MESSAGE.BSC_PROG003D0003Q_frequency") + "<BR/>",
           this.getText("MESSAGE.BSC_PROG003D0003Q_organizationOid") + "<BR/>",
           this.getText("MESSAGE.BSC_PROG003D0003Q_dateType") + "<BR/>"
         },
         new Class[] {
           SelectItemFieldCheckUtils.class,
           SelectItemFieldCheckUtils.class,
           SelectItemFieldCheckUtils.class,
           SelectItemFieldCheckUtils.class
         },
         this.getFieldsId());
   } catch (InstantiationException e) {
     e.printStackTrace();
     throw new ControllerException(e.getMessage().toString());
   } catch (IllegalAccessException e) {
     e.printStackTrace();
     throw new ControllerException(e.getMessage().toString());
   }
   String frequency = this.getFields().get("frequency");
   String dateType = this.getFields().get("dateType");
   if ("3".equals(dateType) && !"6".equals(frequency)) { // year
     this.getFieldsId().add("frequency");
     this.getFieldsId().add("dateType");
     throw new ControllerException(this.getText("MESSAGE.BSC_PROG003D0003Q_msg1") + "<BR/>");
   }
   if (!"3".equals(dateType) && !"5".equals(frequency)) { // half-year
     this.getFieldsId().add("frequency");
     this.getFieldsId().add("dateType");
     throw new ControllerException(this.getText("MESSAGE.BSC_PROG003D0003Q_msg1") + "<BR/>");
   }
   if (!SimpleUtils.isDate(this.getFields().get("year") + "/01/01")) {
     throw new ControllerException(this.getText("MESSAGE.BSC_PROG003D0003Q_msg2") + "<BR/>");
   }
 }
 @SuppressWarnings("unchecked")
 private void checkFields() throws ControllerException {
   try {
     super.checkFields(
         new String[] {"templateId", "title", "message"},
         new String[] {
           this.getText("MESSAGE.CORE_PROG001D0007A_templateId") + "<BR/>",
           this.getText("MESSAGE.CORE_PROG001D0007A_title") + "<BR/>",
           this.getText("MESSAGE.CORE_PROG001D0007A_message") + "<BR/>"
         },
         new Class[] {
           IdFieldCheckUtils.class, NotBlankFieldCheckUtils.class, NotBlankFieldCheckUtils.class
         },
         this.getFieldsId());
   } catch (InstantiationException e) {
     e.printStackTrace();
     throw new ControllerException(e.getMessage().toString());
   } catch (IllegalAccessException e) {
     e.printStackTrace();
     throw new ControllerException(e.getMessage().toString());
   }
 }