code: @Override
      public void saveChanges() {
          BatchOperation saveChangeOperation = new BatchOperation(this);
  
          try (BatchCommand command = saveChangeOperation.createRequest()) {
              if (command == null) {
                  return;
              }
  
              if (noTracking) {
                  throw new IllegalStateException("Cannot execute saveChanges when entity tracking is disabled in session.");
              }
  
              _requestExecutor.execute(command, sessionInfo);
              updateSessionAfterSaveChanges(command.getResult());
              saveChangeOperation.setResult(command.getResult());
          }
      }
docs: Saves all the changes to the Raven server.