code: public static void write(KeePassFile keePassFile, String password, String keePassDatabaseFile) {
          if (keePassDatabaseFile == null || keePassDatabaseFile.isEmpty()) {
              throw new IllegalArgumentException("You must provide a non-empty path where the database should be written to.");
          }
  
          try {
              write(keePassFile, password, new FileOutputStream(keePassDatabaseFile));
          } catch (FileNotFoundException e) {
              throw new KeePassDatabaseUnreadableException("Could not find database file", e);
          }
      }
docs: Encrypts a {@link KeePassFile} with the given password and writes it to
  the given file location.
  <p>
  If the KeePassFile cannot be encrypted an exception will be thrown.
  
  @param keePassFile
  the keePass model which should be written
  @param password
  the password to encrypt the database
  @param keePassDatabaseFile
  the target location where the database file will be written
  @see KeePassFile