protected Map<Path, String> discoverUiResources(Path path, Service s) throws Throwable { Map<Path, String> pathToURIPath = new HashMap<>(); Path baseUriPath = Paths.get(getSelfLink()); String prefix = path.toString().replace('\\', '/'); if (getHost().getState().resourceSandboxFileReference != null) { discoverFileResources(s, pathToURIPath, baseUriPath, prefix); } if (pathToURIPath.isEmpty()) { discoverJarResources(path, s, pathToURIPath, baseUriPath, prefix); } return pathToURIPath; }