// Get pattern defined for the field
String pattern = keyValuePairField.pattern();
// Create format object to format the field
Format<?> format = FormatFactory.getFormat(field.getType(), pattern, getLocale(), keyValuePairField.precision());
// format the value of the key received
Object result = formatField(format, value, key, line);
LOG.debug("Value formated : {}", result);