@Override protected Commandline createCommandLine( KeyToolRequest request, String javaToolFile ) throws JavaToolException { builder.setLogger( getLogger() ); builder.setKeyToolFile( javaToolFile ); Commandline cli; try { cli = builder.build( request ); } catch ( CommandLineConfigurationException e ) { throw new JavaToolException( "Error configuring command-line. Reason: " + e.getMessage(), e ); } catch ( UnsupportedKeyToolRequestException e ) { throw new JavaToolException( "Error configuring command-line. Reason: " + e.getMessage(), e ); } if ( request.isVerbose() ) { getLogger().info( cli.toString() ); } else { getLogger().debug( cli.toString() ); } return cli; }