docs: public DatabaseSession createDatabaseSession(BaseDatabase database, Map<String, Object> properties) throws RemoteException
      {
          DatabaseSession remoteDatabase = null;
          Map<String,Object> propOld = this.getProperties();
          this.setProperties(properties);
          DatabaseOwner databaseOwner = database.getDatabaseOwner();
          if (databaseOwner == null)
              databaseOwner = this.getDatabaseOwner();    // Never
          this.setProperties(propOld);
          if (databaseOwner instanceof Application)
              remoteDatabase = new DatabaseSession((Application)databaseOwner);   // Typical
          else
              remoteDatabase = new DatabaseSession((BaseSession)databaseOwner, null); // If AUTO_COMMIT if off, I need my own database
          database.setMasterSlave(RecordOwner.SLAVE);      // Don't create client behaviors
          remoteDatabase.setDatabase(database);
          return remoteDatabase;
      }