code: static @NotNull Resource get(String path, ResourceResolver resolver) {
      Resource resource = resolver.getResource(path);
      if (resource != null) {
        return resource;
      }
      return new SyntheticNavigatableResource(path, resolver);
    }
docs: Get resource for path. If the path does not exist a synthetic resource is created which supports
  navigation over it's parents until it reaches a resource that exists.
  @param path Path
  @return Resource (never null)