code: protected String getResourceServerContextPath() {
          final String resourceContextPath = this.servletContext.getInitParameter(RESOURCE_CONTEXT_INIT_PARAM);
          if (resourceContextPath == null) {
              // if no resource context path was defined in the web.xml, use the
              // default
              return DEFAULT_RESOURCE_CONTEXT;
          } 
  
          if (!resourceContextPath.startsWith("/")) {
              // ensure that our context starts with a slash
              return "/".concat(resourceContextPath);
          }
          
          return resourceContextPath;
      }
docs: Determine the context name of the resource serving webapp