TextResource (File scriptFile) { TextResource resource = null; // TODO add the support for other run targets mappings if (WslPath.isWslUncPath(scriptFile.getPath())) { resource = getWslUriResource(scriptFile); } if (resource == null) { resource = new DefaultTextFileResourceLoader(new IdentityFileResolver()).loadFile("script", scriptFile); } return resource; }