Buggy code:
class WebConnectorMetrics implements NewStepHandler { static WebConnectorMetrics INSTANCE = new WebConnectorMetrics ( ) ; static final String [ ] NO_LOCATION = new String [ 0 ] ; private static final String BYTES_SENT = "bytesSent" ; private static final String BYTES_RECEIVED = "bytesReceived" ; private static final String PROCESSING_TIME = "processingTime" ; private static final String ERROR_COUNT = "errorCount" ; private static final String MAX_TIME = "maxTime" ; private static final String REQUEST_COUNT = "requestCount" ; static final String [ ] ATTRIBUTES = new String [ ] { WebConnectorMetrics . BYTES_SENT , WebConnectorMetrics . BYTES_RECEIVED , WebConnectorMetrics . PROCESSING_TIME , WebConnectorMetrics . ERROR_COUNT , WebConnectorMetrics . MAX_TIME , WebConnectorMetrics . REQUEST_COUNT } ; public void execute ( NewOperationContext context , ModelNode operation ) throws OperationFailedException { if ( ( context . getType ( ) ) == ( Type . SERVER ) ) { context . addStep ( new NewStepHandler ( ) { public void execute ( NewOperationContext context , ModelNode operation ) throws OperationFailedException { final PathAddress address = PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) ; final String name = address . getLastElement ( ) . getValue ( ) ; final String attributeName = operation . require ( NAME ) . asString ( ) ; <START_BUG> final ServiceController < ? > controller = context . getServiceRegistry ( ) . getService ( JBOSS_WEB_CONNECTOR . append ( name ) ) ; <END_BUG> if ( controller != null ) { try { final Connector connector = ( ( Connector ) ( controller . getValue ( ) ) ) ; final ModelNode result = context . getResult ( ) ; if ( ( ( connector . getProtocolHandler ( ) ) != null ) && ( ( connector . getProtocolHandler ( ) . getRequestGroupInfo ( ) ) != null ) ) { RequestGroupInfo info = connector . getProtocolHandler ( ) . getRequestGroupInfo ( ) ; if ( WebConnectorMetrics . BYTES_SENT . equals ( attributeName ) ) { result . set ( ( "" + ( info . getBytesSent ( ) ) ) ) ; } else if ( WebConnectorMetrics . BYTES_RECEIVED . equals ( attributeName ) ) { result . set ( ( "" + ( info . getBytesReceived ( ) ) ) ) ; } else if ( WebConnectorMetrics . PROCESSING_TIME . equals ( attributeName ) ) { result . set ( ( "" + ( info . getProcessingTime ( ) ) ) ) ; } else if ( WebConnectorMetrics . ERROR_COUNT . equals ( attributeName ) ) { result . set ( ( "" + ( info . getErrorCount ( ) ) ) ) ; } else if ( WebConnectorMetrics . MAX_TIME . equals ( attributeName ) ) { result . set ( ( "" + ( info . getMaxTime ( ) ) ) ) ; } else if ( WebConnectorMetrics . REQUEST_COUNT . equals ( attributeName ) ) { result . set ( ( "" + ( info . getRequestCount ( ) ) ) ) ; } } } catch ( Exception e ) { throw new OperationFailedException ( new ModelNode ( ) . set ( ( "failed<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>metrics" + ( e . getMessage ( ) ) ) ) ) ; } } else { context . getResult ( ) . set ( "no<seq2seq4repair_space>metrics<seq2seq4repair_space>available" ) ; } context . completeStep ( ) ; } } , RUNTIME ) ; } else { context . getResult ( ) . set ( "no<seq2seq4repair_space>metrics<seq2seq4repair_space>available" ) ; } context . completeStep ( ) ; } }

Fix:
final ServiceController < ? > controller = context . getServiceRegistry ( false ) . getService ( JBOSS_WEB_CONNECTOR . append ( name ) ) ;