Buggy code:
void addArgument ( CommandArgument arg ) { } @ Override public boolean isAvailable ( CommandContext ctx ) { } @ Override public boolean isBatchMode ( CommandContext ctx ) { } @ Override public void handle ( CommandContext ctx ) throws CommandLineException { } @ Override public CommandArgument getArgument ( CommandContext ctx , String name ) { } @ Override public boolean hasArgument ( CommandContext ctx , String name ) { } @ Override public boolean hasArgument ( CommandContext ctx , int index ) { } @ Override public Collection < CommandArgument > getArguments ( CommandContext ctx ) { } } private class WritePropertyHandler extends GenericTypeOperationHandler . ActionHandler { @ Override public ModelNode buildRequest ( CommandContext ctx ) throws CommandFormatException { final String name = GenericTypeOperationHandler . this . name . getValue ( ctx . getParsedCommandLine ( ) , true ) ; final ModelNode composite = new ModelNode ( ) ; composite . get ( OPERATION ) . set ( COMPOSITE ) ; composite . get ( ADDRESS ) . setEmptyList ( ) ; final ModelNode steps = composite . get ( STEPS ) ; final ParsedCommandLine args = ctx . getParsedCommandLine ( ) ; final String profile ; if ( ( isDependsOnProfile ( ) ) && ( ctx . isDomainMode ( ) ) ) { profile = GenericTypeOperationHandler . this . profile . getValue ( args ) ; if ( profile == null ) { throw new OperationFormatException ( "--profile<seq2seq4repair_space>argument<seq2seq4repair_space>value<seq2seq4repair_space>is<seq2seq4repair_space>missing." ) ; } } else { profile = null ; } final Map < String , CommandArgument > nodeProps = this . args ; for ( String argName : args . getPropertyNames ( ) ) { if ( ( ( isDependsOnProfile ( ) ) && ( argName . equals ( "--profile" ) ) ) || ( GenericTypeOperationHandler . this . name . getFullName ( ) . equals ( argName ) ) ) { continue ; } final ArgumentWithValue arg = ( ( ArgumentWithValue ) ( nodeProps . get ( argName ) ) ) ; if ( arg == null ) { throw new CommandFormatException ( ( ( "Unrecognized<seq2seq4repair_space>argument<seq2seq4repair_space>name<seq2seq4repair_space>'" + argName ) + "'" ) ) ; } DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder ( ) ; if ( profile != null ) { builder . addNode ( PROFILE , profile ) ; } for ( OperationRequestAddress . Node node : getRequiredAddress ( ) ) { builder . addNode ( node . getType ( ) , node . getName ( ) ) ; } builder . addNode ( getRequiredType ( ) , name ) ; builder . setOperationName ( WRITE_ATTRIBUTE ) ; final String propName ; if ( ( argName . charAt ( 1 ) ) == '-' ) { propName = argName . substring ( 2 ) ; } else { propName = argName . substring ( 1 ) ; } builder . addProperty ( NAME , propName ) ; final String valueString = args . getPropertyValue ( argName ) ; ModelNode nodeValue = arg . getValueConverter ( ) . fromString ( valueString ) ; builder . getModelNode ( ) . get ( VALUE ) . set ( nodeValue ) ; steps . add ( builder . buildRequest ( ) ) ; } return composite ; } } class OpHandler extends GenericTypeOperationHandler . ActionHandler { private final String opName ; OpHandler ( String opName ) { } @ Override public ModelNode buildRequest ( CommandContext ctx ) throws CommandFormatException { final ParsedCommandLine parsedArgs = ctx . getParsedCommandLine ( ) ; final ModelNode request = new ModelNode ( ) ; final ModelNode address = request . get ( ADDRESS ) ; if ( ( isDependsOnProfile ( ) ) && ( ctx . isDomainMode ( ) ) ) { final String profile = GenericTypeOperationHandler . this . profile . getValue ( parsedArgs ) ; if ( profile == null ) { throw new OperationFormatException ( "Required<seq2seq4repair_space>argument<seq2seq4repair_space>--profile<seq2seq4repair_space>is<seq2seq4repair_space>missing." ) ; } address . add ( PROFILE , profile ) ; } final String name = GenericTypeOperationHandler . this . name . getValue ( ctx . getParsedCommandLine ( ) , true ) ; for ( OperationRequestAddress . Node node : getRequiredAddress ( ) ) { address . add ( node . getType ( ) , node . getName ( ) ) ; } address . add ( getRequiredType ( ) , name ) ; request . get ( OPERATION ) . set ( opName ) ; for ( String argName : parsedArgs . getPropertyNames ( ) ) { if ( ( isDependsOnProfile ( ) ) && ( argName . equals ( "--profile" ) ) ) { continue ; } if ( this . args . isEmpty ( ) ) { if ( argName . equals ( GenericTypeOperationHandler . this . name . getFullName ( ) ) ) { continue ; } throw new CommandFormatException ( ( ( ( ( "Command<seq2seq4repair_space>'" + ( operation ) ) + "'<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>expected<seq2seq4repair_space>to<seq2seq4repair_space>have<seq2seq4repair_space>arguments<seq2seq4repair_space>other<seq2seq4repair_space>than<seq2seq4repair_space>" ) + ( GenericTypeOperationHandler . this . name . getFullName ( ) ) ) + "." ) ) ; } final ArgumentWithValue arg = ( ( ArgumentWithValue ) ( this . args . get ( argName ) ) ) ; if ( arg == null ) { if ( argName . equals ( GenericTypeOperationHandler . this . name . getFullName ( ) ) ) { continue ; } <START_BUG> throw new CommandFormatException ( ( ( ( ( "Unrecognized<seq2seq4repair_space>argument<seq2seq4repair_space>" + argName ) + "<seq2seq4repair_space>for<seq2seq4repair_space>command<seq2seq4repair_space>'" ) + ( operation ) ) + "'." ) ) ; <END_BUG> } final String propName ; if ( ( argName . charAt ( 1 ) ) == '-' ) { propName = argName . substring ( 2 ) ; } else { propName = argName . substring ( 1 ) ; } final String valueString = parsedArgs . getPropertyValue ( argName ) ; ModelNode nodeValue = arg . getValueConverter ( ) . fromString ( valueString ) ; request . get ( propName ) . set ( nodeValue ) ; } return request ; } } }

Fix:
throw new CommandFormatException ( ( ( ( ( "Unrecognized<seq2seq4repair_space>argument<seq2seq4repair_space>" + argName ) + "<seq2seq4repair_space>for<seq2seq4repair_space>command<seq2seq4repair_space>'" ) + ( opName ) ) + "'." ) ) ;