UtilityExtensionPoint utilities = extensionPointRegistry.getExtensionPoint(UtilityExtensionPoint.class);
final WorkScheduler workScheduler = utilities.getUtility(WorkScheduler.class);
// Allow privileged access to start MBeans. Requires MBeanPermission in security policy.
server = AccessController.doPrivileged(new PrivilegedAction<TomcatServer>() {
public TomcatServer run() {
return new TomcatServer(workScheduler);
}
});
servletHosts.addServletHost(server);
}
}