Could we extract a class to do the command line parsing?

    CommandLineParser parser = new CommandLineParser(args);
    parser.parse();
    List<Class<?>> classes = parser.getClasses();
    List<Failure> failures = parser.getFailures();
    List<FilterFactory> filterFactories = parser.getFilterFactories();