code: @Override
      public String getContextPath() {
          final HttpServletRequest request = getCurrentRequest();
          String appUri = (String) request.getAttribute(GrailsApplicationAttributes.APP_URI_ATTRIBUTE);
          if (appUri == null) {
              appUri = urlHelper.getContextPath(request);
          }
          return appUri;
      }
docs: Returns the context path of the request.
  @return the path