static @ NotNull Resource get ( String path , ResourceResolver resolver ) { Resource resource = resolver . getResource ( path ) ; if ( resource != null ) { return resource ; } return new SyntheticNavigatableResource ( path , resolver ) ; }
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 .