docs: public static void logMissionInit(MissionInit missionInit) throws JAXBException {
          if (!logging || !isScoring())
              return;
  
          totalRewards = 0.0;
  
          String missionXml = SchemaHelper.serialiseObject(missionInit.getMission(), Mission.class);
          String hash;
          try {
              hash = digest(missionXml);
          }  catch (NoSuchAlgorithmException e) {
              hash = "";
          }
          List<AgentSection> agents = missionInit.getMission().getAgentSection();
          String agentName = agents.get(missionInit.getClientRole()).getName();
  
          StringBuffer message = new StringBuffer("<MissionInit><MissionDigest>");
          message.append(hash);
          message.append("</MissionDigest>");
          message.append("<AgentName>");
          message.append(agentName);
          message.append("</AgentName></MissionInit>");
          if (scoringPolicy == TOTAL_WITH_MISSION_XML)
              message.append(missionXml);
          log(message.toString());
      }