code: public static boolean isGrailsPath(String path) {
          if(KNOWN_PATHS.containsKey(path)) {
              return KNOWN_PATHS.get(path);
          }
          for (Pattern grailsAppResourcePattern : grailsAppResourcePatterns) {
              Matcher m = grailsAppResourcePattern.matcher(path);
              if (m.find()) {
                  KNOWN_PATHS.put(path, true);
                  return true;
              }
          }
          KNOWN_PATHS.put(path, false);
          return false;
      }
docs: Checks whether the specified path is a Grails path.
  
  @param path The path to check
  @return true if it is a Grails path