@Override
  public void start(BundleContext context) throws Exception {
    this.logger = LoggerActivator.getLogger();
    this.logger.info("Starting the " + context.getBundle().getSymbolicName() + " bundle...");

    PermissionActivator.configTracker =
        new ServiceTracker<Config, Config>(context, Config.class, null);
    PermissionActivator.configTracker.open();

    PermissionActivator.messengerTracker =
        new ServiceTracker<MessengerService, MessengerService>(
            context, MessengerService.class, null);
    PermissionActivator.messengerTracker.open();

    /* Register the Permissions service. */
    this.logger.debug("Registering the Permissions SOAP interface service.");
    ServletContainerService soapService = new ServletContainerService();
    soapService.addServlet(new ServletContainer(new AxisServlet(), true));
    this.soapRegistration =
        context.registerService(ServletContainerService.class, soapService, null);

    this.pageRegistrations = new ArrayList<ServiceRegistration<HostedPage>>(3);
    this.pageRegistrations.add(
        context.registerService(HostedPage.class, UsersPage.getHostedPage(), null));
    this.pageRegistrations.add(
        context.registerService(HostedPage.class, UserClassesPage.getHostedPage(), null));
    this.pageRegistrations.add(
        context.registerService(HostedPage.class, KeysPage.getHostedPage(), null));
  }
  public ServerImpl(final BundleContext context) {
    this.logger = LoggerActivator.getLogger();
    this.bundleContext = context;

    this.contexts = new HashMap<Object, Context>();
  }
 public RigProviderSOAPImpl() {
   this.logger = LoggerActivator.getLogger();
 }