code: public ServletContext getServletContext() {
          ServletConfig sc = getServletConfig();
          if (sc == null) {
              throw new IllegalStateException(
                  lStrings.getString("err.servlet_config_not_initialized"));
          }
  
          return sc.getServletContext();
      }
docs: Returns a reference to the {@link ServletContext} in which this servlet
  is running.  See {@link ServletConfig#getServletContext}.
  
  <p>This method is supplied for convenience. It gets the
  context from the servlet's <code>ServletConfig</code> object.
  
  
  @return ServletContext 	the <code>ServletContext</code> object
  passed to this servlet by the <code>init</code>
  method