Buggy code:
public class DeploymentOverlayHandler extends CommandHandlerWithHelp { private static final String ADD = "add" ; private static final String LINK = "link" ; private static final String LIST_CONTENT = "list-content" ; private static final String LIST_LINKS = "list-links" ; private static final String REDEPLOY_AFFECTED = "redeploy-affected" ; private static final String REMOVE = "remove" ; private static final String UPLOAD = "upload" ; private static final byte REDEPLOY_NONE = 0 ; private static final byte REDEPLOY_ONLY_AFFECTED = 1 ; private static final byte REDEPLOY_ALL = 2 ; private final ArgumentWithoutValue l ; private final ArgumentWithValue action ; private final ArgumentWithValue name ; private final ArgumentWithValue content ; private final ArgumentWithValue serverGroups ; private final ArgumentWithoutValue allServerGroups ; private final ArgumentWithoutValue allRelevantServerGroups ; private final ArgumentWithValue deployments ; private final ArgumentWithValue wildcards ; private final ArgumentWithoutValue redeployAffected ; private final FilenameTabCompleter pathCompleter ; public DeploymentOverlayHandler ( CommandContext ctx ) { } @ Override protected void doHandle ( CommandContext ctx ) throws CommandLineException { } protected void redeployAffected ( CommandContext ctx ) throws CommandLineException { } protected void listLinks ( CommandContext ctx ) throws CommandLineException { } protected void listContent ( CommandContext ctx ) throws CommandLineException { } protected void remove ( CommandContext ctx ) throws CommandLineException { } protected void add ( CommandContext ctx ) throws CommandLineException { } protected void link ( CommandContext ctx ) throws CommandLineException { } protected void upload ( CommandContext ctx ) throws CommandLineException { } protected List < String > loadContentFor ( final ModelControllerClient client , final String overlay ) throws CommandLineException { } protected List < String > loadLinks ( final ModelControllerClient client , String overlay , String serverGroup ) throws CommandLineException { } protected ModelNode loadLinkResources ( final ModelControllerClient client , String overlay , String serverGroup ) throws CommandLineException { final ModelNode op = new ModelNode ( ) ; final ModelNode addr = op . get ( ADDRESS ) ; if ( serverGroup != null ) { addr . add ( SERVER_GROUP , serverGroup ) ; } addr . add ( DEPLOYMENT_OVERLAY , overlay ) ; op . get ( OPERATION ) . set ( READ_CHILDREN_RESOURCES ) ; op . get ( CHILD_TYPE ) . set ( DEPLOYMENT ) ; final ModelNode response ; try { response = client . execute ( op ) ; } catch ( IOException e ) { throw new CommandLineException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>the<seq2seq4repair_space>list<seq2seq4repair_space>of<seq2seq4repair_space>deployments<seq2seq4repair_space>for<seq2seq4repair_space>overlay<seq2seq4repair_space>" + overlay ) , e ) ; } final ModelNode result = response . get ( RESULT ) ; if ( ! ( result . isDefined ( ) ) ) { final String descr = Util . getFailureDescription ( response ) ; <START_BUG> if ( ( descr != null ) && ( descr . contains ( "JBAS014807" ) ) ) { <END_BUG> return null ; } throw new CommandLineException ( ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>the<seq2seq4repair_space>list<seq2seq4repair_space>of<seq2seq4repair_space>deployments<seq2seq4repair_space>for<seq2seq4repair_space>overlay<seq2seq4repair_space>" + overlay ) + ":<seq2seq4repair_space>" ) + response ) ) ; } return result ; } protected void addRedeployStep ( final ModelNode steps , final String deployment , String serverGroup ) { } protected String [ ] getLinks ( ArgumentWithValue linksArg , final ParsedCommandLine args ) throws CommandFormatException { } protected List < String > getServerGroupsToLink ( CommandContext ctx ) throws CommandFormatException { } protected void addAddRedeployLinksSteps ( CommandContext ctx , ModelNode steps , String overlay , String serverGroup , String [ ] links , boolean regexp ) throws CommandLineException { } protected void addRemoveRedeployLinksSteps ( ModelControllerClient client , ModelNode steps , String overlay , String sgName , List < String > specifiedLinks , boolean removeLinks , byte redeploy ) throws CommandLineException { } protected void addRedeploySteps ( ModelNode steps , String serverGroup , String linkName , ModelNode link , List < String > remainingDeployments ) { } protected void assertNotPresent ( ArgumentWithoutValue arg , ParsedCommandLine args ) throws CommandFormatException { } }

Fix:
if ( ( descr != null ) && ( ( descr . contains ( "JBAS014807" ) ) || ( descr . contains ( "JBAS014793" ) ) ) ) {