code: protected AbstractDatabaseConfiguration setDirectory(@NonNull String directory) {
          if (directory == null) { throw new IllegalArgumentException("directory cannot be null."); }
          if (readonly) { throw new IllegalStateException("DatabaseConfiguration is readonly mode."); }
          this.directory = directory;
          this.customDir = true;
          return this;
      }
docs: ---------------------------------------------