code: public static KeePassDatabase getInstance(File keePassDatabaseFile) {
          if (keePassDatabaseFile == null) {
              throw new IllegalArgumentException("You must provide a valid KeePass database file.");
          }
  
          InputStream keePassDatabaseStream = null;
          try {
              keePassDatabaseStream = new FileInputStream(keePassDatabaseFile);
              return getInstance(keePassDatabaseStream);
          } catch (FileNotFoundException e) {
              throw new IllegalArgumentException("The KeePass database file could not be found. You must provide a valid KeePass database file.", e);
          } finally {
              if (keePassDatabaseStream != null) {
                  try {
                      keePassDatabaseStream.close();
                  } catch (IOException e) {
                      // Ignore
                  }
              }
          }
      }
docs: Retrieves a KeePassDatabase instance. The instance returned is based on
  the given database file and tries to parse the database header of it.
  
  @param keePassDatabaseFile
  a KeePass database file, must not be NULL
  @return a KeePassDatabase