public DataRoot findDataRoot ( String reqPath ) { String path = findLongestPathMatch ( reqPath ) ; if ( path == null ) return null ; DataRootExt dataRootExt = map . get ( path ) ; if ( dataRootExt == null ) { logger . error ( "DataRootPathMatcher found path {} but not in map" , path ) ; return null ; } return convert2DataRoot ( dataRootExt ) ; }
Find the longest DataRoot match .