Buggy code:
return ; } else if ( ctx . isDomainMode ( ) ) { final ModelNode request = buildAddRequest ( ctx , f , name , runtimeName , unmanaged ) ; execute ( ctx , request , f , unmanaged ) ; return ; } } if ( disabled ) { if ( f == null ) { throw new CommandFormatException ( ( ( this . disabled . getFullName ( ) ) + "<seq2seq4repair_space>requires<seq2seq4repair_space>a<seq2seq4repair_space>filesystem<seq2seq4repair_space>path<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>deployment<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>added<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>deployment<seq2seq4repair_space>repository." ) ) ; } if ( ( serverGroups != null ) || allServerGroups ) { throw new CommandFormatException ( ( ( ( ( ( ( this . serverGroups . getFullName ( ) ) + "<seq2seq4repair_space>and<seq2seq4repair_space>" ) + ( this . allServerGroups . getFullName ( ) ) ) + "<seq2seq4repair_space>can't<seq2seq4repair_space>be<seq2seq4repair_space>used<seq2seq4repair_space>in<seq2seq4repair_space>combination<seq2seq4repair_space>with<seq2seq4repair_space>" ) + ( this . disabled . getFullName ( ) ) ) + '.' ) ) ; } if ( Util . isDeploymentInRepository ( name , client ) ) { throw new CommandFormatException ( ( ( ( ( "'" + name ) + "'<seq2seq4repair_space>already<seq2seq4repair_space>exists<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>deployment<seq2seq4repair_space>repository<seq2seq4repair_space>(use<seq2seq4repair_space>" ) + ( this . force . getFullName ( ) ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>replace<seq2seq4repair_space>the<seq2seq4repair_space>existing<seq2seq4repair_space>content<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>repository)." ) ) ; } final ModelNode request = buildAddRequest ( ctx , f , name , runtimeName , unmanaged ) ; execute ( ctx , request , f , unmanaged ) ; return ; } final ModelNode deployRequest ; if ( ctx . isDomainMode ( ) ) { final List < String > sgList ; if ( allServerGroups ) { if ( serverGroups != null ) { throw new CommandFormatException ( ( ( ( this . serverGroups . getFullName ( ) ) + "<seq2seq4repair_space>can't<seq2seq4repair_space>appear<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>same<seq2seq4repair_space>command<seq2seq4repair_space>with<seq2seq4repair_space>" ) + ( this . allServerGroups . getFullName ( ) ) ) ) ; } sgList = Util . getServerGroups ( client ) ; if ( sgList . isEmpty ( ) ) { throw new CommandFormatException ( "No<seq2seq4repair_space>server<seq2seq4repair_space>group<seq2seq4repair_space>is<seq2seq4repair_space>available." ) ; } } else if ( serverGroups == null ) { final StringBuilder buf = new StringBuilder ( ) ; buf . append ( "One<seq2seq4repair_space>of<seq2seq4repair_space>" ) ; if ( f != null ) { buf . append ( this . disabled . getFullName ( ) ) . append ( ",<seq2seq4repair_space>" ) ; } buf . append ( ( ( ( ( this . allServerGroups . getFullName ( ) ) + "<seq2seq4repair_space>or<seq2seq4repair_space>" ) + ( this . serverGroups . getFullName ( ) ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>missing." ) ) ; throw new CommandFormatException ( buf . toString ( ) ) ; } else { sgList = Arrays . asList ( serverGroups . split ( "," ) ) ; if ( sgList . isEmpty ( ) ) { throw new CommandFormatException ( ( ( ( ( "Couldn't<seq2seq4repair_space>locate<seq2seq4repair_space>server<seq2seq4repair_space>group<seq2seq4repair_space>name<seq2seq4repair_space>in<seq2seq4repair_space>'" + ( this . serverGroups . getFullName ( ) ) ) + "=" ) + serverGroups ) + "'." ) ) ; } } deployRequest = new ModelNode ( ) ; deployRequest . get ( OPERATION ) . set ( COMPOSITE ) ; deployRequest . get ( ADDRESS ) . setEmptyList ( ) ; ModelNode steps = deployRequest . get ( STEPS ) ; for ( String serverGroup : sgList ) { steps . add ( Util . configureDeploymentOperation ( ADD , name , serverGroup ) ) ; } for ( String serverGroup : sgList ) { steps . add ( Util . configureDeploymentOperation ( DEPLOY , name , serverGroup ) ) ; } } else { if ( ( serverGroups != null ) || allServerGroups ) { throw new CommandFormatException ( ( ( ( ( this . serverGroups . getFullName ( ) ) + "<seq2seq4repair_space>and<seq2seq4repair_space>" ) + ( this . allServerGroups . getFullName ( ) ) ) + "<seq2seq4repair_space>can't<seq2seq4repair_space>appear<seq2seq4repair_space>in<seq2seq4repair_space>standalone<seq2seq4repair_space>mode." ) ) ; } deployRequest = new ModelNode ( ) ; deployRequest . get ( OPERATION ) . set ( DEPLOY ) ; deployRequest . get ( ADDRESS , DEPLOYMENT ) . set ( name ) ; } if ( f != null ) { if ( Util . isDeploymentInRepository ( name , client ) ) { throw new CommandFormatException ( ( ( ( ( "'" + name ) + "'<seq2seq4repair_space>already<seq2seq4repair_space>exists<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>deployment<seq2seq4repair_space>repository<seq2seq4repair_space>(use<seq2seq4repair_space>" ) + ( this . force . getFullName ( ) ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>replace<seq2seq4repair_space>the<seq2seq4repair_space>existing<seq2seq4repair_space>content<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>repository)." ) ) ; } final ModelNode request = new ModelNode ( ) ; request . get ( OPERATION ) . set ( COMPOSITE ) ; request . get ( ADDRESS ) . setEmptyList ( ) ; final ModelNode steps = request . get ( STEPS ) ; steps . add ( buildAddRequest ( ctx , f , name , runtimeName , unmanaged ) ) ; steps . add ( deployRequest ) ; execute ( ctx , request , f , unmanaged ) ; return ; } else if ( ! ( Util . isDeploymentInRepository ( name , client ) ) ) { throw new CommandFormatException ( ( ( "'" + name ) + "'<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>found<seq2seq4repair_space>among<seq2seq4repair_space>the<seq2seq4repair_space>registered<seq2seq4repair_space>deployments." ) ) ; } try { final ModelNode result = client . execute ( deployRequest ) ; if ( ! ( Util . isSuccess ( result ) ) ) { throw new CommandFormatException ( Util . getFailureDescription ( result ) ) ; } } catch ( IOException e ) { <START_BUG> throw new CommandFormatException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>deploy:<seq2seq4repair_space>" + ( e . getLocalizedMessage ( ) ) ) , e ) ; <END_BUG> } } @ Override public ModelNode buildRequestWithoutHeaders ( CommandContext ctx ) throws CommandFormatException { } protected ModelNode buildDeploymentReplace ( final File f , String name , String runtimeName ) throws OperationFormatException { } protected ModelNode buildDeploymentAdd ( final File f , String name , String runtimeName , boolean unmanaged ) throws OperationFormatException { } protected void execute ( CommandContext ctx , ModelNode request , File f , boolean unmanaged ) throws CommandFormatException { } protected ModelNode buildAddRequest ( CommandContext ctx , final File f , String name , final String runtimeName , boolean unmanaged ) { } protected void replaceDeployment ( CommandContext ctx , final File f , String name , final String runtimeName ) throws CommandFormatException { } protected byte [ ] readBytes ( File f ) throws OperationFormatException { } }

Fix:
throw new CommandFormatException ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>deploy" , e ) ;