code: public RamlPath path(String pattern) {
      RamlPath path = resources.get(pattern);
      if (path == null) {
        path = new RamlPath();
        resources.put(pattern, path);
      }
      return path;
    }
docs: Get a path for the given pattern. If the path doesn't exist, a new path will be created.
  
  @param pattern Pattern.
  @return Path for the given pattern.