private static void addValidatorsAndConverter(UIInput input, PropertyDefinitionSimple propertyDefinitionSimple,
boolean readOnly,TemplateEngine templateEngine ) {
if (!readOnly) {
input.setRequired(propertyDefinitionSimple.isRequired());
input.addValidator(new PropertySimpleValueValidator(propertyDefinitionSimple));
input.setConverter(new PropertySimpleValueConverter(templateEngine));
}
}