Buggy code:
break ; } if ( commands != null ) { argError = "Only<seq2seq4repair_space>one<seq2seq4repair_space>of<seq2seq4repair_space>'--file',<seq2seq4repair_space>'--commands'<seq2seq4repair_space>or<seq2seq4repair_space>'--command'<seq2seq4repair_space>can<seq2seq4repair_space>appear<seq2seq4repair_space>as<seq2seq4repair_space>the<seq2seq4repair_space>argument<seq2seq4repair_space>at<seq2seq4repair_space>a<seq2seq4repair_space>time." ; break ; } final String fileName = ( arg . startsWith ( "--" ) ) ? arg . substring ( 7 ) : arg . substring ( 5 ) ; if ( ! ( fileName . isEmpty ( ) ) ) { file = new File ( fileName ) ; if ( ! ( file . exists ( ) ) ) { argError = ( "File<seq2seq4repair_space>" + ( file . getAbsolutePath ( ) ) ) + "<seq2seq4repair_space>doesn't<seq2seq4repair_space>exist." ; break ; } } else { argError = "Argument<seq2seq4repair_space>'--file'<seq2seq4repair_space>is<seq2seq4repair_space>missing<seq2seq4repair_space>value." ; break ; } } else if ( ( arg . startsWith ( "--commands=" ) ) || ( arg . startsWith ( "commands=" ) ) ) { if ( file != null ) { argError = "Only<seq2seq4repair_space>one<seq2seq4repair_space>of<seq2seq4repair_space>'--file',<seq2seq4repair_space>'--commands'<seq2seq4repair_space>or<seq2seq4repair_space>'--command'<seq2seq4repair_space>can<seq2seq4repair_space>appear<seq2seq4repair_space>as<seq2seq4repair_space>the<seq2seq4repair_space>argument<seq2seq4repair_space>at<seq2seq4repair_space>a<seq2seq4repair_space>time." ; break ; } if ( commands != null ) { argError = "Duplicate<seq2seq4repair_space>argument<seq2seq4repair_space>'--command'//'--commands'." ; break ; } final String value = ( arg . startsWith ( "--" ) ) ? arg . substring ( 11 ) : arg . substring ( 9 ) ; commands = Util . splitCommands ( value ) ; } else if ( ( arg . startsWith ( "--command=" ) ) || ( arg . startsWith ( "command=" ) ) ) { if ( file != null ) { argError = "Only<seq2seq4repair_space>one<seq2seq4repair_space>of<seq2seq4repair_space>'--file',<seq2seq4repair_space>'--commands'<seq2seq4repair_space>or<seq2seq4repair_space>'--command'<seq2seq4repair_space>can<seq2seq4repair_space>appear<seq2seq4repair_space>as<seq2seq4repair_space>the<seq2seq4repair_space>argument<seq2seq4repair_space>at<seq2seq4repair_space>a<seq2seq4repair_space>time." ; break ; } if ( commands != null ) { argError = "Duplicate<seq2seq4repair_space>argument<seq2seq4repair_space>'--command'//'--commands'." ; break ; } final String value = ( arg . startsWith ( "--" ) ) ? arg . substring ( 10 ) : arg . substring ( 8 ) ; commands = Collections . singletonList ( value ) ; } else if ( arg . startsWith ( "--user=" ) ) { username = ( arg . startsWith ( "--" ) ) ? arg . substring ( 7 ) : arg . substring ( 5 ) ; } else if ( arg . startsWith ( "--password=" ) ) { password = ( arg . startsWith ( "--" ) ? arg . substring ( 11 ) : arg . substring ( 9 ) ) . toCharArray ( ) ; } else if ( ( arg . equals ( "--help" ) ) || ( arg . equals ( "-h" ) ) ) { commands = Collections . singletonList ( "help" ) ; } else if ( arg . startsWith ( "--properties=" ) ) { final String value = arg . substring ( 13 ) ; final File propertiesFile = new File ( value ) ; if ( ! ( propertiesFile . exists ( ) ) ) { argError = "File<seq2seq4repair_space>doesn't<seq2seq4repair_space>exist:<seq2seq4repair_space>" + ( propertiesFile . getAbsolutePath ( ) ) ; break ; } final Properties props = new Properties ( ) ; FileInputStream fis = null ; try { fis = new FileInputStream ( propertiesFile ) ; props . load ( fis ) ; } catch ( FileNotFoundException e ) { argError = e . getLocalizedMessage ( ) ; break ; } catch ( IOException e ) { argError = ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>properties<seq2seq4repair_space>from<seq2seq4repair_space>" + ( propertiesFile . getAbsolutePath ( ) ) ) + ":<seq2seq4repair_space>" ) + ( e . getLocalizedMessage ( ) ) ; break ; } finally { if ( fis != null ) { try { fis . close ( ) ; } catch ( IOException e ) { } } } for ( Object prop : props . keySet ( ) ) { SecurityActions . setSystemProperty ( ( ( String ) ( prop ) ) , ( ( String ) ( props . get ( prop ) ) ) ) ; } } else { if ( file != null ) { argError = "Only<seq2seq4repair_space>one<seq2seq4repair_space>of<seq2seq4repair_space>'--file',<seq2seq4repair_space>'--commands'<seq2seq4repair_space>or<seq2seq4repair_space>'--command'<seq2seq4repair_space>can<seq2seq4repair_space>appear<seq2seq4repair_space>as<seq2seq4repair_space>the<seq2seq4repair_space>argument<seq2seq4repair_space>at<seq2seq4repair_space>a<seq2seq4repair_space>time:<seq2seq4repair_space>" + arg ; break ; } if ( commands != null ) { argError = "Duplicate<seq2seq4repair_space>argument<seq2seq4repair_space>'--command'//'--commands'." ; break ; } commands = Util . splitCommands ( arg ) ; } } if ( argError != null ) { System . err . println ( argError ) ; exitCode = 1 ; return ; } if ( version ) { <START_BUG> cmdCtx = new CommandContextImpl ( ) ; <END_BUG> INSTANCE . handle ( cmdCtx ) ; return ; } if ( file != null ) { cmdCtx = CliLauncher . initCommandContext ( defaultControllerHost , defaultControllerPort , username , password , false , connect ) ; CliLauncher . processFile ( file , cmdCtx ) ; return ; } if ( commands != null ) { cmdCtx = CliLauncher . initCommandContext ( defaultControllerHost , defaultControllerPort , username , password , false , connect ) ; CliLauncher . processCommands ( commands , cmdCtx ) ; return ; } if ( gui ) { cmdCtx = CliLauncher . initCommandContext ( defaultControllerHost , defaultControllerPort , username , password , false , true ) ; CliLauncher . processGui ( cmdCtx ) ; return ; } cmdCtx = CliLauncher . initCommandContext ( defaultControllerHost , defaultControllerPort , username , password , true , connect ) ; cmdCtx . interact ( ) ; } catch ( Throwable t ) { t . printStackTrace ( ) ; exitCode = 1 ; } finally { if ( ( cmdCtx != null ) && ( ( cmdCtx . getExitCode ( ) ) != 0 ) ) { exitCode = cmdCtx . getExitCode ( ) ; } if ( ! gui ) { System . exit ( exitCode ) ; } } System . exit ( exitCode ) ; } private static CommandContext initCommandContext ( String defaultHost , int defaultPort , String username , char [ ] password , boolean initConsole , boolean connect ) throws CliInitializationException { } private static void processGui ( final CommandContext cmdCtx ) { } private static void processCommands ( List < String > commands , CommandContext cmdCtx ) { } private static void processFile ( File file , final CommandContext cmdCtx ) { } }

Fix:
cmdCtx = CliLauncher . initCommandContext ( defaultControllerHost , defaultControllerPort , username , password , false , connect ) ;