code: public void sendEvent(String eventId, Set<Privilege> privileges) {
          // TODO do not use yml in json events...
          String ymlPrivileges = PrivilegeMapper.privilegesToYml(privileges);
  
          SystemEvent event = buildSystemEvent(eventId, ymlPrivileges);
          serializeEvent(event).ifPresent(this::send);
      }
docs: Build MS_PRIVILEGES message for system queue event and send it.
  
  @param eventId    the event id
  @param privileges the event data (privileges)