public String getSkinRootDir ( String path , Set < String > skinRootDirs ) { String skinRootDir = null ; for ( String skinDir : skinRootDirs ) { if ( path . startsWith ( skinDir ) ) { skinRootDir = skinDir ; } } return skinRootDir ; }
Returns the skin root dir of the path given in parameter