Buggy code:
public void reset ( ) { } @ Override public String getOriginalLine ( ) { } public List < String > getOtherProperties ( ) { } @ Override public boolean isRequestComplete ( ) { } @ Override public boolean endsOnPropertySeparator ( ) { } @ Override public boolean endsOnPropertyValueSeparator ( ) { } @ Override public boolean endsOnPropertyListStart ( ) { } @ Override public boolean endsOnHeaderListStart ( ) { } @ Override public boolean endsOnAddressOperationNameSeparator ( ) { } @ Override public boolean endsOnNodeSeparator ( ) { } @ Override public boolean endsOnNodeTypeNameSeparator ( ) { } @ Override public boolean endsOnSeparator ( ) { } @ Override public boolean hasAddress ( ) { } @ Override public OperationRequestAddress getAddress ( ) { } @ Override public boolean hasOperationName ( ) { } @ Override public String getOperationName ( ) { } @ Override public boolean hasProperties ( ) { } @ Override public boolean hasProperty ( String propertyName ) { } @ Override public void validatedNodeType ( int index , String nodeType ) throws OperationFormatException { } @ Override public void nodeTypeNameSeparator ( int index ) { } @ Override public void validatedNodeName ( int index , String nodeName ) throws OperationFormatException { } @ Override public void nodeSeparator ( int index ) { } @ Override public void addressOperationSeparator ( int index ) { } @ Override public void operationName ( int index , String operationName ) throws OperationFormatException { } public void validatedOperationName ( int index , String operationName ) throws OperationFormatException { } @ Override public void propertyListStart ( int index ) { } @ Override public void headerListStart ( int index ) { } @ Override public void propertyName ( int index , String propertyName ) throws OperationFormatException { } @ Override protected void validatedPropertyName ( int index , String propertyName ) throws OperationFormatException { } @ Override public void propertyNameValueSeparator ( int index ) { } @ Override public void property ( String name , String value , int nameValueSeparatorIndex ) throws OperationFormatException { } @ Override protected void validatedProperty ( String name , String value , int nameValueSeparatorIndex ) throws OperationFormatException { } @ Override public void propertySeparator ( int index ) { } @ Override public void propertyListEnd ( int index ) { } @ Override public void headerListEnd ( int index ) { } @ Override public ParsingStateCallbackHandler headerName ( int index , String headerName ) throws CommandFormatException { } @ Override public void header ( String name , String value , int nameValueSeparator ) throws CommandFormatException { } public void header ( OperationRequestHeader header ) { } @ Override public boolean hasHeaders ( ) { } @ Override public List < OperationRequestHeader > getHeaders ( ) { } @ Override public void rootNode ( int index ) { } @ Override public void parentNode ( int index ) { } @ Override public void nodeType ( int index ) { } @ Override public void nodeTypeOrName ( int index , String typeOrName ) throws OperationFormatException { } @ Override public Set < String > getPropertyNames ( ) { } @ Override public String getPropertyValue ( String name ) { } @ Override public int getLastSeparatorIndex ( ) { } @ Override public int getLastChunkIndex ( ) { } @ Override public void outputTarget ( int index , String outputTarget ) { } public String getOutputTarget ( ) { } @ Override public String getLastParsedPropertyName ( ) { } @ Override public String getLastParsedPropertyValue ( ) { } public ModelNode toOperationRequest ( ) throws CommandFormatException { ModelNode request = new ModelNode ( ) ; ModelNode addressNode = request . get ( "address" ) ; if ( address . isEmpty ( ) ) { addressNode . setEmptyList ( ) ; } else { Iterator < Node > iterator = address . iterator ( ) ; while ( iterator . hasNext ( ) ) { OperationRequestAddress . Node node = iterator . next ( ) ; if ( ( node . getName ( ) ) != null ) { addressNode . add ( node . getType ( ) , node . getName ( ) ) ; } else if ( iterator . hasNext ( ) ) { throw new OperationFormatException ( ( ( "The<seq2seq4repair_space>node<seq2seq4repair_space>name<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>specified<seq2seq4repair_space>for<seq2seq4repair_space>type<seq2seq4repair_space>'" + ( node . getType ( ) ) ) + "'" ) ) ; } } } if ( ( ( operationName ) == null ) || ( operationName . isEmpty ( ) ) ) { throw new OperationFormatException ( "The<seq2seq4repair_space>operation<seq2seq4repair_space>name<seq2seq4repair_space>is<seq2seq4repair_space>missing<seq2seq4repair_space>or<seq2seq4repair_space>the<seq2seq4repair_space>format<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>operation<seq2seq4repair_space>request<seq2seq4repair_space>is<seq2seq4repair_space>wrong." ) ; } request . get ( "operation" ) . set ( operationName ) ; for ( String propName : props . keySet ( ) ) { final String value = props . get ( propName ) ; if ( ( propName == null ) || ( propName . trim ( ) . isEmpty ( ) ) ) throw new OperationFormatException ( ( ( "The<seq2seq4repair_space>argument<seq2seq4repair_space>name<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>specified:<seq2seq4repair_space>'" + propName ) + "'" ) ) ; if ( ( value == null ) || ( value . trim ( ) . isEmpty ( ) ) ) throw new OperationFormatException ( ( ( ( ( "The<seq2seq4repair_space>argument<seq2seq4repair_space>value<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>specified<seq2seq4repair_space>for<seq2seq4repair_space>" + propName ) + ":<seq2seq4repair_space>'" ) + value ) + "'" ) ) ; ModelNode toSet = null ; try { toSet = ModelNode . fromString ( value ) ; } catch ( Exception e ) { toSet = new ModelNode ( ) . set ( value ) ; } request . get ( propName ) . set ( toSet ) ; } if ( ( headers ) != null ) { final ModelNode headersNode = request . get ( OPERATION_HEADERS ) ; for ( OperationRequestHeader header : headers ) { <START_BUG> headersNode . add ( ) . set ( header . toModelNode ( ) ) ; <END_BUG> } } return request ; } @ Override public void setFormat ( CommandLineFormat format ) { } @ Override public CommandLineFormat getFormat ( ) { } }

Fix:
header . addTo ( headersNode ) ;