Buggy code:
public class JndiViewOperation implements OperationStepHandler { public static final JndiViewOperation INSTANCE = new JndiViewOperation ( ) ; public static final String OPERATION_NAME = "jndi-view" ; public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { final ModelNode resultNode = context . getResult ( ) ; if ( ( context . getType ( ) ) == ( Type . SERVER ) ) { context . addStep ( new OperationStepHandler ( ) { public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { final ServiceRegistry serviceRegistry = context . getServiceRegistry ( false ) ; final ModelNode contextsNode = resultNode . get ( "java:<seq2seq4repair_space>contexts" ) ; final ServiceController < ? > jbossContextService = serviceRegistry . getService ( JBOSS_CONTEXT_SERVICE_NAME ) ; final NamingStore jbossContextNamingStore = NamingStore . class . cast ( jbossContextService . getValue ( ) ) ; try { addEntries ( contextsNode . get ( "java:jboss" ) , new org . jboss . as . naming . NamingContext ( jbossContextNamingStore , null ) ) ; } catch ( NamingException e ) { throw new OperationFailedException ( e , new ModelNode ( ) . set ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>read<seq2seq4repair_space>java:jboss<seq2seq4repair_space>context<seq2seq4repair_space>entries." ) ) ; } final ServiceController < ? > globalContextService = serviceRegistry . getService ( GLOBAL_CONTEXT_SERVICE_NAME ) ; final NamingStore globalContextNamingStore = NamingStore . class . cast ( globalContextService . getValue ( ) ) ; try { addEntries ( contextsNode . get ( "java:global" ) , new org . jboss . as . naming . NamingContext ( globalContextNamingStore , null ) ) ; } catch ( NamingException e ) { throw new OperationFailedException ( e , new ModelNode ( ) . set ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>read<seq2seq4repair_space>java:global<seq2seq4repair_space>context<seq2seq4repair_space>entries." ) ) ; } final ServiceController < ? > extensionRegistryController = serviceRegistry . getService ( SERVICE_NAME ) ; if ( extensionRegistryController != null ) { final JndiViewExtensionRegistry extensionRegistry = JndiViewExtensionRegistry . class . cast ( extensionRegistryController . getValue ( ) ) ; for ( JndiViewExtension extension : extensionRegistry . getExtensions ( ) ) { extension . execute ( new JndiViewExtensionContext ( ) { public OperationContext getOperationContext ( ) { return context ; } public ModelNode getResult ( ) { return resultNode ; } public void addEntries ( ModelNode current , Context context ) throws NamingException { JndiViewOperation . this . addEntries ( current , context ) ; } } ) ; } } context . completeStep ( ) ; } } , RUNTIME ) ; } else { <START_BUG> resultNode . set ( "Jndi<seq2seq4repair_space>view<seq2seq4repair_space>is<seq2seq4repair_space>only<seq2seq4repair_space>available<seq2seq4repair_space>in<seq2seq4repair_space>runtime<seq2seq4repair_space>mode." ) ; <END_BUG> } context . completeStep ( ) ; } private void addEntries ( final ModelNode current , final Context context ) throws NamingException { } }

Fix:
throw new OperationFailedException ( new ModelNode ( ) . set ( "Jndi<seq2seq4repair_space>view<seq2seq4repair_space>is<seq2seq4repair_space>only<seq2seq4repair_space>available<seq2seq4repair_space>in<seq2seq4repair_space>runtime<seq2seq4repair_space>mode." ) ) ;