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 ) { } protected ModelNode initRequest ( CommandContext ctx ) { } protected boolean validateInput ( CommandContext ctx , String typePath , String propertyName ) { 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 ) { ctx . error ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>validate<seq2seq4repair_space>input:<seq2seq4repair_space>" + ( e . getLocalizedMessage ( ) ) ) ) ; return false ; } OperationRequestAddress typeAddress = callback . getAddress ( ) ; if ( ! ( typeAddress . endsOnType ( ) ) ) { ctx . error ( ( ( "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." ) ) ; return false ; } 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 ) { ctx . error ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>validate<seq2seq4repair_space>input:<seq2seq4repair_space>" + ( e . getLocalizedMessage ( ) ) ) ) ; return false ; } if ( ! ( result . hasDefined ( RESULT ) ) ) { ctx . error ( "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." ) ; return false ; } boolean pathValid = false ; for ( ModelNode typeNode : result . get ( RESULT ) . asList ( ) ) { if ( typeNode . asString ( ) . equals ( typeName ) ) { pathValid = true ; break ; } } if ( ! pathValid ) { <START_BUG> ctx . error ( ( ( ( ( "Type<seq2seq4repair_space>'" + typeName ) + "'<seq2seq4repair_space>not<seq2seq4repair_space>found<seq2seq4repair_space>amoung<seq2seq4repair_space>child<seq2seq4repair_space>types<seq2seq4repair_space>of<seq2seq4repair_space>'" ) + ( ctx . getPrefixFormatter ( ) . format ( typeAddress ) ) ) + "'" ) ) ; <END_BUG> return false ; } address . add ( typeName , "?" ) ; request . get ( OPERATION ) . set ( READ_RESOURCE_DESCRIPTION ) ; try { result = ctx . getModelControllerClient ( ) . execute ( request ) ; } catch ( IOException e ) { ctx . error ( e . getLocalizedMessage ( ) ) ; return false ; } if ( ! ( result . hasDefined ( RESULT ) ) ) { ctx . error ( "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." ) ; return false ; } result = result . get ( RESULT ) ; if ( ! ( result . hasDefined ( "attributes" ) ) ) { ctx . error ( ( "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 ) ) ; return false ; } 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 true ; } ctx . error ( ( ( "Property<seq2seq4repair_space>" + propertyName ) + "<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>read-only." ) ) ; return false ; } } } else { return true ; } ctx . error ( ( ( ( "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 ) ) ; return false ; } }

Fix:
ctx . error ( ( ( ( ( "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 ) ) ) + "'" ) ) ;