Buggy code:
public class CommandCommandHandler extends CommandHandlerWithHelp { private final ArgumentWithValue action = new ArgumentWithValue ( this , new SimpleTabCompleter ( new String [ ] { "add" , "list" , "remove" } ) , 0 , "--action" ) ; private final ArgumentWithValue nodePath ; private final ArgumentWithValue idProperty ; private final ArgumentWithValue commandName ; private final CommandRegistry cmdRegistry ; private DefaultCallbackHandler callback ; public CommandCommandHandler ( CommandRegistry cmdRegistry ) { } @ Override protected void doHandle ( CommandContext ctx ) throws CommandFormatException { } protected List < String > getExistingCommands ( ) { } protected List < Property > getNodeProperties ( CommandContext ctx ) throws CommandFormatException { } protected ModelNode initRequest ( CommandContext ctx ) throws CommandFormatException { } protected void validateInput ( CommandContext ctx , String typePath , String propertyName ) throws CommandFormatException { ModelNode request = new ModelNode ( ) ; ModelNode address = request . get ( ADDRESS ) ; if ( ( callback ) == null ) { callback = new DefaultCallbackHandler ( ) ; } else { callback . reset ( ) ; } try { ParserUtil . parseOperationRequest ( typePath , callback ) ; } catch ( CommandFormatException e ) { throw new CommandFormatException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>validate<seq2seq4repair_space>input:<seq2seq4repair_space>" + ( e . getLocalizedMessage ( ) ) ) ) ; } OperationRequestAddress typeAddress = callback . getAddress ( ) ; if ( ! ( typeAddress . endsOnType ( ) ) ) { throw new CommandFormatException ( ( ( "Node<seq2seq4repair_space>path<seq2seq4repair_space>'" + typePath ) + "'<seq2seq4repair_space>doesn't<seq2seq4repair_space>appear<seq2seq4repair_space>to<seq2seq4repair_space>end<seq2seq4repair_space>on<seq2seq4repair_space>a<seq2seq4repair_space>type." ) ) ; } final String typeName = typeAddress . toParentNode ( ) . getType ( ) ; for ( OperationRequestAddress . Node node : typeAddress ) { address . add ( node . getType ( ) , node . getName ( ) ) ; } request . get ( OPERATION ) . set ( READ_CHILDREN_TYPES ) ; ModelNode result ; try { result = ctx . getModelControllerClient ( ) . execute ( request ) ; } catch ( IOException e ) { throw new CommandFormatException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>validate<seq2seq4repair_space>input:<seq2seq4repair_space>" + ( e . getLocalizedMessage ( ) ) ) ) ; } if ( ! ( result . hasDefined ( RESULT ) ) ) { throw new CommandFormatException ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>validate<seq2seq4repair_space>input:<seq2seq4repair_space>operation<seq2seq4repair_space>response<seq2seq4repair_space>doesn't<seq2seq4repair_space>contain<seq2seq4repair_space>result<seq2seq4repair_space>info." ) ; } boolean pathValid = false ; for ( ModelNode typeNode : result . get ( RESULT ) . asList ( ) ) { if ( typeNode . asString ( ) . equals ( typeName ) ) { pathValid = true ; break ; } } if ( ! pathValid ) { <START_BUG> throw new CommandFormatException ( ( ( ( ( "Type<seq2seq4repair_space>'" + typeName ) + "'<seq2seq4repair_space>not<seq2seq4repair_space>found<seq2seq4repair_space>among<seq2seq4repair_space>child<seq2seq4repair_space>types<seq2seq4repair_space>of<seq2seq4repair_space>'" ) + ( ctx . getPrefixFormatter ( ) . format ( typeAddress ) ) ) + "'" ) ) ; <END_BUG> } address . add ( typeName , "?" ) ; request . get ( OPERATION ) . set ( READ_RESOURCE_DESCRIPTION ) ; try { result = ctx . getModelControllerClient ( ) . execute ( request ) ; } catch ( IOException e ) { throw new CommandFormatException ( e . getLocalizedMessage ( ) ) ; } if ( ! ( result . hasDefined ( RESULT ) ) ) { throw new CommandFormatException ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>validate<seq2seq4repair_space>input:<seq2seq4repair_space>operation<seq2seq4repair_space>response<seq2seq4repair_space>doesn't<seq2seq4repair_space>contain<seq2seq4repair_space>result<seq2seq4repair_space>info." ) ; } result = result . get ( RESULT ) ; if ( ! ( result . hasDefined ( "attributes" ) ) ) { throw new CommandFormatException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>validate<seq2seq4repair_space>input:<seq2seq4repair_space>description<seq2seq4repair_space>of<seq2seq4repair_space>attributes<seq2seq4repair_space>is<seq2seq4repair_space>missing<seq2seq4repair_space>for<seq2seq4repair_space>" + typePath ) ) ; } if ( propertyName != null ) { for ( Property prop : result . get ( ATTRIBUTES ) . asPropertyList ( ) ) { if ( prop . getName ( ) . equals ( propertyName ) ) { ModelNode value = prop . getValue ( ) ; if ( ( value . has ( ACCESS_TYPE ) ) && ( READ_ONLY . equals ( value . get ( ACCESS_TYPE ) . asString ( ) ) ) ) { return ; } throw new CommandFormatException ( ( ( "Property<seq2seq4repair_space>" + propertyName ) + "<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>read-only." ) ) ; } } } else { return ; } throw new CommandFormatException ( ( ( ( "Property<seq2seq4repair_space>'" + propertyName ) + "'<seq2seq4repair_space>wasn't<seq2seq4repair_space>found<seq2seq4repair_space>among<seq2seq4repair_space>the<seq2seq4repair_space>properties<seq2seq4repair_space>of<seq2seq4repair_space>" ) + typePath ) ) ; } }

Fix:
throw new CommandFormatException ( ( ( ( ( "Type<seq2seq4repair_space>'" + typeName ) + "'<seq2seq4repair_space>not<seq2seq4repair_space>found<seq2seq4repair_space>among<seq2seq4repair_space>child<seq2seq4repair_space>types<seq2seq4repair_space>of<seq2seq4repair_space>'" ) + ( ctx . getNodePathFormatter ( ) . format ( typeAddress ) ) ) + "'" ) ) ;