docs: @SuppressWarnings({"rawtypes", "unchecked"})
      private void initializeFormFieldWidget(final I_CmsFormField formField) {
  
          final I_CmsFormWidget widget = formField.getWidget();
          if (widget instanceof HasValueChangeHandlers) {
              ((HasValueChangeHandlers)widget).addValueChangeHandler(new ValueChangeHandler() {
  
                  /**
                   * @see com.google.gwt.event.logical.shared.ValueChangeHandler#onValueChange(ValueChangeEvent event)
                   */
                  public void onValueChange(ValueChangeEvent event) {
  
                      boolean inhibitValidation = false;
                      if (event instanceof CmsExtendedValueChangeEvent) {
                          CmsExtendedValueChangeEvent extEvent = (CmsExtendedValueChangeEvent)event;
                          inhibitValidation = extEvent.isInhibitValidation();
                      }
                      Object eventValue = event.getValue();
                      if ((eventValue instanceof String) || (event.getValue() == null)) {
                          // only makes sense for strings
                          defaultHandleValueChange(formField, (String)(event.getValue()), inhibitValidation);
                      } else if (eventValue instanceof Date) {
                          defaultHandleValueChange(formField, "" + ((Date)eventValue).getTime(), inhibitValidation);
                      } else if (eventValue instanceof Boolean) {
                          defaultHandleValueChange(formField, "" + eventValue, inhibitValidation);
                      }
  
                  }
              });
          }
  
          if (widget instanceof HasKeyPressHandlers) {
              ((HasKeyPressHandlers)widget).addKeyPressHandler(new KeyPressHandler() {
  
                  /**
                   * @see com.google.gwt.event.dom.client.KeyPressHandler#onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent)
                   */
                  public void onKeyPress(KeyPressEvent event) {
  
                      int keyCode = event.getNativeEvent().getKeyCode();
                      defaultHandleKeyPress(formField, keyCode);
                  }
              });
          }
      }