Buggy code:
public class ExampleRunner implements Runnable { private static final PrintStream stdout = System . out ; private static int addCount ; private static final Map < String , ExampleRunner . MainMenu > mainMenuByCmd = new HashMap < String , ExampleRunner . MainMenu > ( ) ; private static final Map < String , ExampleRunner . DeploymentActionsMenu > deploymentActionMenuByCmd = new HashMap < String , ExampleRunner . DeploymentActionsMenu > ( ) ; private static final Map < String , ExampleRunner . DeploymentPlanMenu > deploymentPlanMenuByCmd = new HashMap < String , ExampleRunner . DeploymentPlanMenu > ( ) ; private final DomainClient client ; private final Reader stdin ; private String swingLAF ; private ExampleRunner ( InetAddress address , int port ) { } @ Override public void run ( ) { } private boolean mainMenu ( ) throws Exception { } private void writeMenu ( EnumSet < ? extends ExampleRunner . MenuItem > menu ) { } private Map < String , Object > writeMenuBody ( List < ? > choices ) { } private boolean continuePrompt ( ) throws IOException { } private boolean dumpDomainConfig ( ) throws Exception { } private boolean listHostControllers ( ) throws Exception { } private boolean dumpHostController ( ) throws Exception { } private void writeHostController ( String hc ) throws Exception { } private boolean listServers ( ) throws Exception { } private boolean dumpServer ( ) throws Exception { } private boolean stopServer ( ) throws Exception { } private boolean startServer ( ) throws Exception { } private boolean restartServer ( ) throws Exception { } private boolean addServer ( ) throws Exception { } private List < String > getServerGroupNames ( ) { } private ModelNode getDomainModel ( ) { } private boolean removeServer ( ) throws Exception { } private ServerIdentity chooseServer ( ServerStatus valid , ServerStatus ... alsoValid ) throws IOException { } private SortedMap < String , ServerIdentity > getValidServers ( ServerStatus valid , ServerStatus ... alsoValid ) { } private boolean runDeploymentPlan ( ) throws Exception { } private String chooseServerGroup ( ModelNode model , Set < String > existingGroups ) throws IOException { } private DeploymentPlanBuilder deployContent ( DeploymentPlanBuilder builder , Set < String > addedContent , Set < String > deployedContent , Set < String > undeployedContent , Set < String > removedContent , ModelNode domainModel ) throws IOException { } private String chooseUndeployedContent ( String message , Set < String > addedContent , Set < String > deployedContent , Set < String > undeployedContent , Set < String > removedContent , ModelNode domainModel ) throws IOException { } private String chooseDeployment ( TreeSet < String > deployments , String message ) throws IOException { } private DeploymentPlanBuilder replaceContent ( DeploymentPlanBuilder builder , Set < String > addedContent , Set < String > deployedContent , Set < String > undeployedContent , Set < String > removedContent , ModelNode domainModel ) throws IOException { } private String chooseDeployedContent ( String message , Set < String > deployedContent , Set < String > undeployedContent , ModelNode domainModel ) throws IOException { } private DeploymentPlanBuilder undeployContent ( DeploymentPlanBuilder builder , Set < String > addedContent , Set < String > deployedContent , Set < String > undeployedContent , Set < String > removedContent , ModelNode domainModel , ExampleRunner . DeploymentActionsMenu cmd ) throws IOException { } private DeploymentPlanBuilder removeContent ( DeploymentPlanBuilder builder , Set < String > addedContent , Set < String > deployedContent , Set < String > undeployedContent , Set < String > removedContent , ModelNode domainModel ) throws IOException { } private boolean deploymentPlanCancelPrompt ( ) throws IOException { } private DeploymentPlan completeDeploymentPlan ( ServerGroupDeploymentPlanBuilder groupPlanBuilder , ModelNode model , Set < String > includedGroups ) throws IOException { } private void writeDeploymentPlanResult ( DeploymentPlanResult deploymentPlanResult ) { } private File chooseFile ( ) throws IOException { } private synchronized void initializeSwing ( ) { } private boolean addJmsQueue ( ) throws Exception { ExampleRunner . stdout . println ( "Enter<seq2seq4repair_space>the<seq2seq4repair_space>name<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>new<seq2seq4repair_space>queue<seq2seq4repair_space>or<seq2seq4repair_space>[C]<seq2seq4repair_space>to<seq2seq4repair_space>cancel:" ) ; String queueName = readStdIn ( ) ; if ( "C" . equals ( queueName . toUpperCase ( ) ) ) { return continuePrompt ( ) ; } final ModelNode address = new ModelNode ( ) ; address . add ( PROFILE , "default" ) ; address . add ( SUBSYSTEM , "jms" ) ; address . add ( "queue" , queueName ) ; final ModelNode queueAddOperation = new ModelNode ( ) ; queueAddOperation . get ( OP ) . set ( ADD ) ; queueAddOperation . get ( OP_ADDR ) . set ( address ) ; <START_BUG> queueAddOperation . add ( "entries" , queueName ) ; <END_BUG> DomainDeploymentUtils utils = null ; boolean deployed = false ; try { utils = new DomainDeploymentUtils ( client ) ; utils . addDeployment ( "fakejndi.sar" , FakeJndi . class . getPackage ( ) ) ; utils . deploy ( ) ; deployed = true ; try { final ModelNode result = executeForResult ( queueAddOperation ) ; Collection < ServerIdentity > servers = resultToServerIdentitySet ( result ) ; for ( ServerIdentity server : servers ) { System . out . println ( server ) ; exerciseQueueOnServer ( queueName , server ) ; } } catch ( Exception e ) { System . out . println ( ( "failed<seq2seq4repair_space>to<seq2seq4repair_space>execute<seq2seq4repair_space>operation<seq2seq4repair_space>" + queueAddOperation ) ) ; e . printStackTrace ( ) ; } return continuePrompt ( ) ; } finally { if ( deployed && ( utils != null ) ) { utils . undeploy ( ) ; } } } private void exerciseQueueOnServer ( final String queueName , final ServerIdentity server ) throws Exception { } private String readStdIn ( ) throws IOException { } private < T > T lookup ( ServerIdentity server , String name , Class < T > expected ) throws Exception { } private MBeanServerConnection getMBeanServerConnection ( ServerIdentity server ) throws Exception { } private static interface MenuItem { String getPrompt ( ) { } }

Fix:
queueAddOperation . get ( "entries" ) . add ( queueName ) ;