// Determine which module descriptors, or extension points, to expose.
DefaultModuleDescriptorFactory modules = new DefaultModuleDescriptorFactory(new DefaultHostContainer());
initPluginDescriptor(modules, DEFAULT_PACKAGE_NAME);
// Determine which service objects to expose to plugins
HostComponentProvider host = new HostComponentProvider() {
public void provide(ComponentRegistrar reg) {
reg.register(AuthenticationManager.class).forInstance(authenticationManager);
reg.register(IAgentManagerService.class).forInstance(agentManagerService);
reg.register(IUserService.class).forInstance(userService);
reg.register(IPerfTestService.class).forInstance(perfTestService);