// Change accessibility to allow to read protected/private fields
field.setAccessible(true);
// Retrieve the format, pattern and precision associated to the type
Class type = field.getType();
String pattern = dataField.pattern();
int precision = dataField.precision();
// Create format
Format format = FormatFactory.getFormat(type, pattern, precision);