private static String convertDeprecatedClass(String className) {
        switch (className) {
            case "kafka.tools.DefaultMessageFormatter":
                System.err.println("WARNING: kafka.tools.DefaultMessageFormatter is deprecated and will be removed in the next major release. " +
                        "Please use org.apache.kafka.tools.consumer.DefaultMessageFormatter instead");
                return DefaultMessageFormatter.class.getName();
            case "kafka.tools.LoggingMessageFormatter":
                System.err.println("WARNING: kafka.tools.LoggingMessageFormatter is deprecated and will be removed in the next major release. " +
                        "Please use org.apache.kafka.tools.consumer.LoggingMessageFormatter instead");
                return LoggingMessageFormatter.class.getName();
            case "kafka.tools.NoOpMessageFormatter":
                System.err.println("WARNING: kafka.tools.NoOpMessageFormatter is deprecated and will be removed in the next major release. " +
                        "Please use org.apache.kafka.tools.consumer.NoOpMessageFormatter instead");
                return NoOpMessageFormatter.class.getName();
            case "kafka.coordinator.transaction.TransactionLog$TransactionLogMessageFormatter":
                System.err.println("WARNING: kafka.coordinator.transaction.TransactionLog$TransactionLogMessageFormatter is deprecated and will be removed in the next major release. " +
                        "Please use org.apache.kafka.tools.consumer.TransactionLogMessageFormatter instead");
                return className;
            default:
                return className;
        }
    }
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