@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 );
final JGitFileSystem fileSystem = fileSystems.get( extractRepoName( uri ) );
if ( fileSystem == null ) {
throw new FileSystemNotFoundException();
}
try {
return JGitPathImpl.create( fileSystem, URIUtil.decode( extractPath( uri ) ), extractHost( uri ), false );
} catch ( final URIException e ) {
return null;
}
}