Boolean isRequired = getIsRequiredForField();
Map<String, String> additionalProperties = getAdditionalPropertiesForField();
String defaultValue = getDefaultValueForField();
boolean hideLabel = getHideLabelForField();
WidgetParameters widgetParameters = new WidgetParameters();
widgetParameters.setXtype(parameters.getXtype());
widgetParameters.setName(name);
widgetParameters.setFieldName(fieldName);
widgetParameters.setFieldLabel(fieldLabel);
widgetParameters.setFieldDescription(fieldDescription);
widgetParameters.setAllowBlank(!isRequired);
widgetParameters.setHideLabel(hideLabel);
widgetParameters.setAdditionalProperties(additionalProperties);
widgetParameters.setDefaultValue(defaultValue);
widgetParameters.setListeners(getListeners());
return new SimpleWidget(widgetParameters);
}