Buggy code:
public class DeployHandler extends BatchModeCommandHandler { private final ArgumentWithoutValue force ; private final ArgumentWithoutValue l ; private final ArgumentWithoutValue path ; private final ArgumentWithoutValue name ; private final ArgumentWithoutValue rtName ; private final ArgumentWithValue serverGroups ; private final ArgumentWithoutValue allServerGroups ; private final ArgumentWithoutValue disabled ; public DeployHandler ( ) { } @ Override protected void doHandle ( CommandContext ctx ) { ModelControllerClient client = ctx . getModelControllerClient ( ) ; ParsedArguments args = ctx . getParsedArguments ( ) ; boolean l = this . l . isPresent ( args ) ; if ( ( ! ( args . hasArguments ( ) ) ) || l ) { printList ( ctx , Util . getDeployments ( client ) , l ) ; return ; } final String path = this . path . getValue ( args ) ; final File f ; if ( path != null ) { f = new File ( path ) ; if ( ! ( f . exists ( ) ) ) { ctx . printLine ( ( ( "Path<seq2seq4repair_space>" + ( f . getAbsolutePath ( ) ) ) + "<seq2seq4repair_space>doesn't<seq2seq4repair_space>exist." ) ) ; return ; } if ( f . isDirectory ( ) ) { ctx . printLine ( ( ( f . getAbsolutePath ( ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>directory." ) ) ; return ; } } else { f = null ; } String name = this . name . getValue ( args ) ; if ( name == null ) { if ( f == null ) { ctx . printLine ( "Either<seq2seq4repair_space>path<seq2seq4repair_space>or<seq2seq4repair_space>--name<seq2seq4repair_space>is<seq2seq4repair_space>requied." ) ; return ; } name = f . getName ( ) ; } final String runtimeName = rtName . getValue ( args ) ; if ( ( Util . isDeploymentInRepository ( name , client ) ) && ( f != null ) ) { if ( force . isPresent ( args ) ) { DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder ( ) ; ModelNode result ; builder = new DefaultOperationRequestBuilder ( ) ; builder . setOperationName ( "full-replace-deployment" ) ; builder . addProperty ( "name" , name ) ; if ( runtimeName != null ) { builder . addProperty ( "runtime-name" , runtimeName ) ; } FileInputStream is = null ; try { is = new FileInputStream ( f ) ; ModelNode request = builder . buildRequest ( ) ; OperationBuilder op = Factory . create ( request ) ; op . addInputStream ( is ) ; request . get ( "content" ) . get ( 0 ) . get ( "input-stream-index" ) . set ( 0 ) ; result = client . execute ( op . build ( ) ) ; } catch ( Exception e ) { ctx . printLine ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>replace<seq2seq4repair_space>the<seq2seq4repair_space>deployment:<seq2seq4repair_space>" + ( e . getLocalizedMessage ( ) ) ) ) ; return ; } finally { StreamUtils . safeClose ( is ) ; } if ( ! ( Util . isSuccess ( result ) ) ) { ctx . printLine ( Util . getFailureDescription ( result ) ) ; return ; } ctx . printLine ( ( ( "'" + name ) + "'<seq2seq4repair_space>re-deployed<seq2seq4repair_space>successfully." ) ) ; } else { <START_BUG> ctx . printLine ( ( ( ( ( "'" + name ) + "'<seq2seq4repair_space>is<seq2seq4repair_space>already<seq2seq4repair_space>deployed<seq2seq4repair_space>(use<seq2seq4repair_space>" ) + ( force . getDefaultName ( ) ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>force<seq2seq4repair_space>re-deploy)." ) ) ; <END_BUG> } return ; } else { DefaultOperationRequestBuilder builder ; ModelNode result ; if ( f != null ) { builder = new DefaultOperationRequestBuilder ( ) ; builder . setOperationName ( "add" ) ; builder . addNode ( "deployment" , name ) ; if ( runtimeName != null ) { builder . addProperty ( "runtime-name" , runtimeName ) ; } FileInputStream is = null ; try { is = new FileInputStream ( f ) ; ModelNode request = builder . buildRequest ( ) ; OperationBuilder op = Factory . create ( request ) ; op . addInputStream ( is ) ; request . get ( "content" ) . get ( 0 ) . get ( "input-stream-index" ) . set ( 0 ) ; result = client . execute ( op . build ( ) ) ; } catch ( Exception e ) { ctx . printLine ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>add<seq2seq4repair_space>the<seq2seq4repair_space>deployment<seq2seq4repair_space>content<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>repository:<seq2seq4repair_space>" + ( e . getLocalizedMessage ( ) ) ) ) ; return ; } finally { StreamUtils . safeClose ( is ) ; } if ( ! ( Util . isSuccess ( result ) ) ) { ctx . printLine ( Util . getFailureDescription ( result ) ) ; return ; } } if ( ! ( disabled . isPresent ( args ) ) ) { final ModelNode request ; if ( ctx . isDomainMode ( ) ) { final List < String > serverGroups ; if ( ctx . isDomainMode ( ) ) { if ( allServerGroups . isPresent ( args ) ) { serverGroups = Util . getServerGroups ( client ) ; } else { String serverGroupsStr = this . serverGroups . getValue ( args ) ; if ( serverGroupsStr == null ) { ctx . printLine ( "Either<seq2seq4repair_space>--all-server-groups<seq2seq4repair_space>or<seq2seq4repair_space>--server-groups<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>specified." ) ; return ; } serverGroups = Arrays . asList ( serverGroupsStr . split ( "," ) ) ; } if ( serverGroups . isEmpty ( ) ) { ctx . printLine ( "No<seq2seq4repair_space>server<seq2seq4repair_space>group<seq2seq4repair_space>is<seq2seq4repair_space>available." ) ; return ; } } else { serverGroups = null ; } request = new ModelNode ( ) ; request . get ( "operation" ) . set ( "composite" ) ; request . get ( "address" ) . setEmptyList ( ) ; ModelNode steps = request . get ( "steps" ) ; for ( String serverGroup : serverGroups ) { steps . add ( Util . configureDeploymentOperation ( "add" , name , serverGroup ) ) ; } for ( String serverGroup : serverGroups ) { steps . add ( Util . configureDeploymentOperation ( "deploy" , name , serverGroup ) ) ; } } else { builder = new DefaultOperationRequestBuilder ( ) ; builder . setOperationName ( "deploy" ) ;

Fix:
ctx . printLine ( ( ( ( ( "'" + name ) + "'<seq2seq4repair_space>is<seq2seq4repair_space>already<seq2seq4repair_space>deployed<seq2seq4repair_space>(use<seq2seq4repair_space>" ) + ( force . getFullName ( ) ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>force<seq2seq4repair_space>re-deploy)." ) ) ;