Program: 167714
Project: 167714
Buggy source:
private void initCommands() throws CommandLineException {
  cmdRegistry.registerHandler(new AttachmentHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new PrefixHandler(),"String_Node_Str","String_Node_Str");
  cmdRegistry.registerHandler(new ClearScreenHandler(),"String_Node_Str","String_Node_Str");
  cmdRegistry.registerHandler(new CommandCommandHandler(cmdRegistry),"String_Node_Str");
  cmdRegistry.registerHandler(new ConnectHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new EchoDMRHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new HelpHandler(cmdRegistry),"String_Node_Str","String_Node_Str");
  cmdRegistry.registerHandler(new HistoryHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new LsHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new ASModuleHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new PrintWorkingNodeHandler(),"String_Node_Str","String_Node_Str");
  cmdRegistry.registerHandler(new QuitHandler(),"String_Node_Str","String_Node_Str","String_Node_Str");
  cmdRegistry.registerHandler(new ReadAttributeHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new ReadOperationHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new VersionHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new ConnectionInfoHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new CommandTimeoutHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new SetVariableHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new EchoVariableHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new UnsetVariableHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new DeployHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new UndeployHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new DeploymentInfoHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new DeploymentOverlayHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchDiscardHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchListHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchHoldbackHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchRunHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchClearHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchRemoveLineHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchMoveLineHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchEditLineHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new TryHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new CatchHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new FinallyHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new EndTryHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new IfHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new ElseHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new EndIfHandler(),"String_Node_Str");
  final DefaultCompleter driverNameCompleter=new DefaultCompleter(JDBCDriverNameProvider.INSTANCE);
  final GenericTypeOperationHandler dsHandler=new GenericTypeOperationHandler(this,"String_Node_Str",null);
  dsHandler.addValueCompleter(Util.DRIVER_NAME,driverNameCompleter);
  final DataSourceAddCompositeHandler dsAddHandler=new DataSourceAddCompositeHandler(this,"String_Node_Str");
  dsAddHandler.addValueCompleter(Util.DRIVER_NAME,driverNameCompleter);
  dsHandler.addHandler(Util.ADD,dsAddHandler);
  cmdRegistry.registerHandler(dsHandler,"String_Node_Str");
  final GenericTypeOperationHandler xaDsHandler=new GenericTypeOperationHandler(this,"String_Node_Str",null);
  xaDsHandler.addValueCompleter(Util.DRIVER_NAME,driverNameCompleter);
  final XADataSourceAddCompositeHandler xaDsAddHandler=new XADataSourceAddCompositeHandler(this,"String_Node_Str");
  xaDsAddHandler.addValueCompleter(Util.DRIVER_NAME,driverNameCompleter);
  xaDsHandler.addHandler(Util.ADD,xaDsAddHandler);
  cmdRegistry.registerHandler(xaDsHandler,"String_Node_Str");
  cmdRegistry.registerHandler(new JDBCDriverInfoHandler(this),"String_Node_Str");
  final GenericTypeOperationHandler rolloutPlan=new GenericTypeOperationHandler(this,"String_Node_Str",null);
  rolloutPlan.addValueConverter("String_Node_Str",HeadersArgumentValueConverter.INSTANCE);
  rolloutPlan.addValueCompleter("String_Node_Str",RolloutPlanCompleter.INSTANCE);
  cmdRegistry.registerHandler(rolloutPlan,"String_Node_Str");
  cmdRegistry.registerHandler(new ArchiveHandler(this),false,"String_Node_Str");
  final AtomicReference<EmbeddedProcessLaunch> embeddedServerLaunch=EmbeddedControllerHandlerRegistrar.registerEmbeddedCommands(cmdRegistry,this);
  cmdRegistry.registerHandler(new ReloadHandler(this,embeddedServerLaunch),"String_Node_Str");
  cmdRegistry.registerHandler(new ShutdownHandler(this,embeddedServerLaunch),"String_Node_Str");
  registerExtraHandlers();
  extLoader=new ExtensionsLoader(cmdRegistry,this);
}

Fixed version (ground truth):
private void initCommands() throws CommandLineException {
  cmdRegistry.registerHandler(new AttachmentHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new PrefixHandler(),"String_Node_Str","String_Node_Str");
  cmdRegistry.registerHandler(new ClearScreenHandler(),"String_Node_Str","String_Node_Str");
  cmdRegistry.registerHandler(new CommandCommandHandler(cmdRegistry),"String_Node_Str");
  cmdRegistry.registerHandler(new ConnectHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new EchoDMRHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new HelpHandler(cmdRegistry),"String_Node_Str","String_Node_Str");
  cmdRegistry.registerHandler(new HistoryHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new LsHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new ASModuleHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new PrintWorkingNodeHandler(),"String_Node_Str","String_Node_Str");
  cmdRegistry.registerHandler(new QuitHandler(),"String_Node_Str","String_Node_Str","String_Node_Str");
  cmdRegistry.registerHandler(new ReadAttributeHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new ReadOperationHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new VersionHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new ConnectionInfoHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new CommandTimeoutHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new SetVariableHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new EchoVariableHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new UnsetVariableHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new DeployHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new UndeployHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new DeploymentInfoHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new DeploymentOverlayHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchDiscardHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchListHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchHoldbackHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchRunHandler(this),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchClearHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchRemoveLineHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchMoveLineHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new BatchEditLineHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new TryHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new CatchHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new FinallyHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new EndTryHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new IfHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new ElseHandler(),"String_Node_Str");
  cmdRegistry.registerHandler(new EndIfHandler(),"String_Node_Str");
  final DefaultCompleter driverNameCompleter=new DefaultCompleter(JDBCDriverNameProvider.INSTANCE);
  final GenericTypeOperationHandler dsHandler=new GenericTypeOperationHandler(this,"String_Node_Str",null);
  dsHandler.addValueCompleter(Util.DRIVER_NAME,driverNameCompleter);
  final DataSourceAddCompositeHandler dsAddHandler=new DataSourceAddCompositeHandler(this,"String_Node_Str");
  dsAddHandler.addValueCompleter(Util.DRIVER_NAME,driverNameCompleter);
  dsHandler.addHandler(Util.ADD,dsAddHandler);
  cmdRegistry.registerHandler(dsHandler,dsHandler.getCommandName());
  final GenericTypeOperationHandler xaDsHandler=new GenericTypeOperationHandler(this,"String_Node_Str",null);
  xaDsHandler.addValueCompleter(Util.DRIVER_NAME,driverNameCompleter);
  final XADataSourceAddCompositeHandler xaDsAddHandler=new XADataSourceAddCompositeHandler(this,"String_Node_Str");
  xaDsAddHandler.addValueCompleter(Util.DRIVER_NAME,driverNameCompleter);
  xaDsHandler.addHandler(Util.ADD,xaDsAddHandler);
  cmdRegistry.registerHandler(xaDsHandler,xaDsHandler.getCommandName());
  cmdRegistry.registerHandler(new JDBCDriverInfoHandler(this),"String_Node_Str");
  final GenericTypeOperationHandler rolloutPlan=new GenericTypeOperationHandler(this,"String_Node_Str",null);
  rolloutPlan.addValueConverter("String_Node_Str",HeadersArgumentValueConverter.INSTANCE);
  rolloutPlan.addValueCompleter("String_Node_Str",RolloutPlanCompleter.INSTANCE);
  cmdRegistry.registerHandler(rolloutPlan,rolloutPlan.getCommandName());
  cmdRegistry.registerHandler(new ArchiveHandler(this),false,"String_Node_Str");
  final AtomicReference<EmbeddedProcessLaunch> embeddedServerLaunch=EmbeddedControllerHandlerRegistrar.registerEmbeddedCommands(cmdRegistry,this);
  cmdRegistry.registerHandler(new ReloadHandler(this,embeddedServerLaunch),"String_Node_Str");
  cmdRegistry.registerHandler(new ShutdownHandler(this,embeddedServerLaunch),"String_Node_Str");
  registerExtraHandlers();
  extLoader=new ExtensionsLoader(cmdRegistry,this);
}