throws IllegalArgumentException, IOException, SecurityException, FileSystemAlreadyExistsException {
checkNotNull( "uri", uri );
checkCondition( "uri scheme not supported", uri.getScheme().equals( getScheme() ) || uri.getScheme().equals( "default" ) );
checkURI( "uri", uri );
checkNotNull( "env", env );
<BUG>final String name = extractRepoName( uri );
if ( fileSystems.containsKey( name ) ) {</BUG>
throw new FileSystemAlreadyExistsException( "No filesystem for uri (" + uri + ") found." );
}
ListBranchCommand.ListMode listMode;

throws IllegalArgumentException, IOException, SecurityException, FileSystemAlreadyExistsException {
checkNotNull( "uri", uri );
checkCondition( "uri scheme not supported", uri.getScheme().equals( getScheme() ) || uri.getScheme().equals( "default" ) );
checkURI( "uri", uri );
checkNotNull( "env", env );
String name = extractRepoName( uri );
migrateIfNeeded( env, name );
if ( fileSystems.containsKey( name ) ) {
throw new FileSystemAlreadyExistsException( "No filesystem for uri (" + uri + ") found." );
}
ListBranchCommand.ListMode listMode;
