question: public PathImpl fsWalk ( String userPath , Map < String , Object > attributes , String uri ) { String path ; String query = null ; int queryIndex = uri . indexOf ( '?' ) ; if ( queryIndex >= 0 ) { path = uri . substring ( 0 , queryIndex ) ; query = uri . substring ( queryIndex + 1 ) ; } else path = uri ; if ( path . length ( ) == 0 ) path = "/" ; return create ( _root , userPath , attributes , path , query ) ; }
target:  Scans the path portion of the URI, i.e. everything after the host and port.