change the method 'loadResourceAsNioFilePath', use a uri to create a
java.nio.Path Object.