private MessageFormatter buildFormatter() {
        MessageFormatter formatter = null;
        try {
            Class<?> messageFormatterClass = Class.forName(convertDeprecatedClass(options.valueOf(messageFormatterOpt)));
            formatter = (MessageFormatter) messageFormatterClass.getDeclaredConstructor().newInstance();

            Properties formatterArgs = formatterArgs();
            Map<String, String> formatterConfigs = new HashMap<>();
            for (final String name : formatterArgs.stringPropertyNames()) {
                formatterConfigs.put(name, formatterArgs.getProperty(name));
            }

            formatter.configure(formatterConfigs);

        } catch (Exception e) {
            CommandLineUtils.printUsageAndExit(parser, e.getMessage());
        }
        return formatter;
    }
Used to retrieve the correct value for the consumer parameter 'auto.offset.reset'.
Order of priority is:
  1. Explicitly set parameter via --consumer.property command line parameter
  2. Explicit --from-beginning given -> 'earliest'
  3. Default value of 'latest'
In case both --from-beginning and an explicit value are specified an error is thrown if these
are conflicting.
tools/src/main/java/org/apache/kafka/tools/consumer/ConsoleConsumerOptions.java