@Override public Path getPath(final URI uri) throws IllegalArgumentException, FileSystemNotFoundException, SecurityException { checkNotNull("uri", uri); checkCondition("uri scheme not supported", uri.getScheme().equals(getScheme()) || uri.getScheme().equals("default")); checkURI("uri", uri); if (LOG.isDebugEnabled()) { LOG.debug("Accessing uri " + uri.toString()); } Path path; JGitFileSystem fileSystem = deepLookupFSFrom(uri); String branch = extractBranchFrom(uri); String host = buildHostFrom(fileSystem, branch); String pathStr = buildPathFrom(uri, host); path = JGitPathImpl.create(fileSystem, pathStr, host, false); return path; }