code: public static Server startWebServerMode( String port, boolean doSSL, boolean ifExists, String baseDir ) throws SQLException {
          List<String> params = new ArrayList<>();
          params.add("-webAllowOthers");
          if (port != null) {
              params.add("-webPort");
              params.add(port);
          }
  
          if (doSSL) {
              params.add("-webSSL");
          }
  
          if (ifExists) {
              params.add("-ifExists");
          }
  
          if (baseDir != null) {
              params.add("-baseDir");
              params.add(baseDir);
          }
  
          Server server = Server.createWebServer(params.toArray(new String[0])).start();
          return server;
      }
docs: Start the web server mode.
  
  @param port the optional port to use.
  @param doSSL if <code>true</code>, ssl is used.
  @param ifExists is <code>true</code>, the database to connect to has to exist.
  @param baseDir an optional basedir into which it is allowed to connect.
  @return
  @throws SQLException