add a new method to load a resource as a java.nio.file.Path