code: public Resource getResource(String path) {
          if (hasContext()) {
              return context.getResource(path);
          }
          return getContext().getResource(getContextPath() + '/' + path);
      }
docs: Return resource located at given path
  
  @param path Resource path
  @return Resource