code: public String getContextPath()
      {
          if (parentContext!=null && _useParent)
              return parentContext.getContextPath();
          String cp =null;
          if (_contextPath!=null)
              cp=_contextPath;
          else
              cp = getWebApp().getContextPath();
          if (cp.equals("/"))
          {
              return "";
          }
          else
          {
              return cp;
          }
      }
docs: /* (non-Javadoc)
  @see com.ibm.ws.webcontainer.webapp.IWebAppDispatcherContext#getContextPath()