protected boolean isRoot(String path){
  for (  String root : this.roots) {
    if (path.equals(root)) {
      return true;
    }
  }
  return false;
}

protected boolean isRoot ( String path ) { for ( String root : this . roots ) { if ( path . equals ( root ) ) { return true ; } } return false ; }
checks if the provided path is a defined root path
