@Override
 public void refreshLayout(Form form) {
   super.refreshLayout(form);
   if (form.getName().equals(Form.MAIN)) {
     boolean isCustom = ENCODING_TYPE_CUSTOM.equals(encodingType.getValue());
     form.getWidget(customEncoding.getName()).setHidden(!isCustom);
   }
 }