protected void addWebConnectorConfigService(final OperationContext context,
ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> newControllers,
String connectorName, int maxThreads) throws Exception {
WebConnectorConfigService service = new WebConnectorConfigService();
service.setMaxThreads( maxThreads );
newControllers.add( context.getServiceTarget().addService( WebServices.WEB_CONNECTOR_CONFIG.append( connectorName ), service )
.addDependency( WebSubsystemServices.JBOSS_WEB_CONNECTOR.append( connectorName ), Connector.class, service.getConnectorInjector() )
.addListener( verificationHandler )
.setInitialMode( Mode.ACTIVE )
.install() );
}