public PathImpl get ( String scheme ) { ConcurrentHashMap < String , SchemeRoot > map = getMap ( ) ; SchemeRoot root = map . get ( scheme ) ; if ( root == null ) { PathImpl rootPath = createLazyScheme ( scheme ) ; if ( rootPath != null ) { map . putIfAbsent ( scheme , new SchemeRoot ( rootPath ) ) ; root = map . get ( scheme ) ; } } PathImpl path = null ; if ( root != null ) { path = root . getRoot ( ) ; } if ( path != null ) { return path ; } else { return new NotFoundPath ( this , scheme + ":" ) ; } }
Gets the scheme from the schemeMap .