code: @Override
      public void init(ServletConfig pServletConfig) throws ServletException {
          // We are making the bundle context available here as a thread local
          // so that the server detector has access to the bundle in order to detect
          // the Osgi-Environment
          BUNDLE_CONTEXT_THREAD_LOCAL.set(getBundleContext(pServletConfig));
          try {
              super.init(pServletConfig);
          } finally {
              BUNDLE_CONTEXT_THREAD_LOCAL.remove();
          }
      }
docs: {@inheritDoc}