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