protected CmdLineTool(String commandName, BaseConfiguration configuration) { jadConfig = new JadConfig(); jadConfig.addConverterFactory(new GuavaConverterFactory()); jadConfig.addConverterFactory(new JodaTimeConverterFactory()); if (commandName == null) { if (this.getClass().isAnnotationPresent(Command.class)) { this.commandName = this.getClass().getAnnotation(Command.class).name(); } else { this.commandName = "tool"; } } else { this.commandName = commandName; } this.configuration = configuration; }