code: @Override
      public String getContextPath() {
          if (SecurityUtil.isPackageProtectionEnabled()) {
              return (String) doPrivileged("getContextPath", null);
          } else {
              return context.getContextPath();
          }
      }
docs: ------------------------------------------------- ServletContext Methods