Buggy code:
private BufferedWriter outputTarget ; private List < CliEventListener > listeners = new ArrayList < CliEventListener > ( ) ; private int exitCode ; private File currentDir = new File ( "" ) ; CommandContextImpl ( ) throws CliInitializationException { } CommandContextImpl ( String username , char [ ] password ) throws CliInitializationException { } CommandContextImpl ( String defaultControllerHost , int defaultControllerPort , String username , char [ ] password , boolean initConsole ) throws CliInitializationException { } private void initCommands ( ) { cmdRegistry . registerHandler ( new PrefixHandler ( ) , "cd" , "cn" ) ; cmdRegistry . registerHandler ( new ClearScreenHandler ( ) , "clear" , "cls" ) ; cmdRegistry . registerHandler ( new org . jboss . as . cli . handlers . CommandCommandHandler ( cmdRegistry ) , "command" ) ; cmdRegistry . registerHandler ( new ConnectHandler ( ) , "connect" ) ; cmdRegistry . registerHandler ( new EchoDMRHandler ( ) , "echo-dmr" ) ; cmdRegistry . registerHandler ( new HelpHandler ( ) , "help" , "h" ) ; cmdRegistry . registerHandler ( new HistoryHandler ( ) , "history" ) ; cmdRegistry . registerHandler ( new LsHandler ( ) , "ls" ) ; cmdRegistry . registerHandler ( new PrintWorkingNodeHandler ( ) , "pwd" , "pwn" ) ; cmdRegistry . registerHandler ( new QuitHandler ( ) , "quit" , "q" , "exit" ) ; cmdRegistry . registerHandler ( new ReadAttributeHandler ( this ) , "read-attribute" ) ; cmdRegistry . registerHandler ( new ReadOperationHandler ( this ) , "read-operation" ) ; cmdRegistry . registerHandler ( new VersionHandler ( ) , "version" ) ; cmdRegistry . registerHandler ( new DeployHandler ( this ) , "deploy" ) ; cmdRegistry . registerHandler ( new UndeployHandler ( this ) , "undeploy" ) ; cmdRegistry . registerHandler ( new DeploymentInfoHandler ( this ) , "deployment-info" ) ; cmdRegistry . registerHandler ( new BatchHandler ( ) , "batch" ) ; cmdRegistry . registerHandler ( new BatchDiscardHandler ( ) , "discard-batch" ) ; cmdRegistry . registerHandler ( new BatchListHandler ( ) , "list-batch" ) ; cmdRegistry . registerHandler ( new BatchHoldbackHandler ( ) , "holdback-batch" ) ; cmdRegistry . registerHandler ( new BatchRunHandler ( ) , "run-batch" ) ; cmdRegistry . registerHandler ( new BatchClearHandler ( ) , "clear-batch" ) ; cmdRegistry . registerHandler ( new BatchRemoveLineHandler ( ) , "remove-batch-line" ) ; cmdRegistry . registerHandler ( new BatchMoveLineHandler ( ) , "move-batch-line" ) ; cmdRegistry . registerHandler ( new BatchEditLineHandler ( ) , "edit-batch-line" ) ; cmdRegistry . registerHandler ( new GenericTypeOperationHandler ( this , "//subsystem=datasources//data-source" , null ) , "data-source" ) ; cmdRegistry . registerHandler ( new GenericTypeOperationHandler ( this , "//subsystem=datasources//xa-data-source" , null ) , "xa-data-source" ) ; cmdRegistry . registerHandler ( new DataSourceAddHandler ( this ) , false , "add-data-source" ) ; cmdRegistry . registerHandler ( new DataSourceModifyHandler ( this ) , false , "modify-data-source" ) ; cmdRegistry . registerHandler ( new DataSourceRemoveHandler ( this ) , false , "remove-data-source" ) ; cmdRegistry . registerHandler ( new XADataSourceAddHandler ( this ) , false , "add-xa-data-source" ) ; cmdRegistry . registerHandler ( new XADataSourceRemoveHandler ( this ) , false , "remove-xa-data-source" ) ; cmdRegistry . registerHandler ( new XADataSourceModifyHandler ( this ) , false , "modify-xa-data-source" ) ; cmdRegistry . registerHandler ( new GenericTypeOperationHandler ( this , "//subsystem=messaging//hornetq-server=default//jms-queue" , "queue-address" ) , "jms-queue" ) ; cmdRegistry . registerHandler ( new GenericTypeOperationHandler ( this , "//subsystem=messaging//hornetq-server=default//jms-topic" , "topic-address" ) , "jms-topic" ) ; cmdRegistry . registerHandler ( new GenericTypeOperationHandler ( this , "//subsystem=messaging//hornetq-server=default//connection-factory" , null ) , "connection-factory" ) ; cmdRegistry . registerHandler ( new JmsQueueAddHandler ( this ) , false , "add-jms-queue" ) ; cmdRegistry . registerHandler ( new JmsQueueRemoveHandler ( this ) , false , "remove-jms-queue" ) ; cmdRegistry . registerHandler ( new JmsTopicAddHandler ( this ) , false , "add-jms-topic" ) ; cmdRegistry . registerHandler ( new JmsTopicRemoveHandler ( this ) , false , "remove-jms-topic" ) ; cmdRegistry . registerHandler ( new JmsCFAddHandler ( this ) , false , "add-jms-cf" ) ; cmdRegistry . registerHandler ( new JmsCFRemoveHandler ( this ) , false , "remove-jms-cf" ) ; cmdRegistry . registerHandler ( new CreateJmsResourceHandler ( this ) , false , "create-jms-resource" ) ; cmdRegistry . registerHandler ( new DeleteJmsResourceHandler ( this ) , false , "delete-jms-resource" ) ; final GenericTypeOperationHandler rolloutPlan = new GenericTypeOperationHandler ( this , "//management-client-content=rollout-plans//rollout-plan" , null ) ; <START_BUG> rolloutPlan . addValueConverter ( "content" , HEADERS ) ; <END_BUG> rolloutPlan . addValueCompleter ( "content" , INSTANCE ) ; cmdRegistry . registerHandler ( rolloutPlan , "rollout-plan" ) ; cmdRegistry . registerHandler ( new ArchiveHandler ( this ) , false , "archive" ) ; } public int getExitCode ( ) { } private void initSSLContext ( ) throws CliInitializationException { } @ Override public boolean isTerminated ( ) { } @ Override public void handle ( String line ) throws CommandLineException { } public void handleSafe ( String line ) { } @ Override public String getArgumentsString ( ) { } @ Override public void terminateSession ( ) { } @ Override public void printLine ( String message ) { } protected void error ( String message ) { } private String readLine ( String prompt , boolean password , boolean disableHistory ) throws IOException { } @ Override public void printColumns ( Collection < String > col ) { } @ Override public void set ( String key , Object value ) { } @ Override public Object get ( String key ) { } @ Override public ModelControllerClient getModelControllerClient ( ) { } @ Override public CommandLineParser getCommandLineParser ( ) { } @ Override public OperationRequestAddress getPrefix ( ) { } @ Override public PrefixFormatter getPrefixFormatter ( ) { } @ Override public OperationCandidatesProvider getOperationCandidatesProvider ( ) { } @ Override public void connectController ( ) throws CommandLineException { } @ Override public void connectController ( String host , int port ) throws CommandLineException { } @ Override public File getCurrentDir ( ) { } @ Override public void setCurrentDir ( File dir ) { }

Fix:
rolloutPlan . addValueConverter ( "content" , new HeadersArgumentValueConverter ( this ) ) ;