class HopVfs {

  public static boolean startsWithScheme( String vfsFileName ) {
    lock.readLock().lock();
    try {

      DefaultFileSystemManager fsManager = getFileSystemManager();

      boolean found = false;
      String[] schemes = fsManager.getSchemes();
      for ( int i = 0; i < schemes.length; i++ ) {
        if ( vfsFileName.startsWith( schemes[ i ] + ":" ) ) {
          found = true;
          break;
        }
      }

      return found;
    } finally {
      lock.readLock().unlock();
    }
  }

}