// Get pattern defined for the field
pattern = dataField.pattern();
// Create format object to format the field
format = FormatFactory.getFormat(field.getType(), pattern, dataField.precision());
// field object to be set
Object modelField = model.get(field.getDeclaringClass().getName());
// format the data received