public boolean accept(File pathname) {
    boolean isAcceptable = false;
    if (pathname.exists() && pathname.isFile() && pathname.canRead()) {
      try {

        if (m_extensionList != null)
          if (!checkFilenameExtension(pathname.getName()))
            return isAcceptable;

        FileInputStream in = new FileInputStream(pathname);
        Properties p = new Properties();
        p.load(in);
        in.close();
        if (p.containsKey("driver") && p.containsKey("url"))
          isAcceptable = true;
      }
      catch (IOException e) {
        isAcceptable = false;
      }
    }
    return isAcceptable;
  }