code: private void closeSessionAndCreateAndOpenUntitledDb() throws Exception {
          getExtensionLoader().sessionAboutToChangeAllPlugin(null);
          model.closeSession();
          log.info("Create and Open Untitled Db");
          model.createAndOpenUntitledDb();
      }
docs: Closes the old session and creates and opens an untitled database.
  
  @throws Exception if an error occurred while creating or opening the database.