code: @Override
    public void processReturningText(String s, HttpAction hm) {
      if (hm.getRequest().equals(msg.getRequest())) {
        log.debug("Got returning text: \"{}\"", s);
        try {
          Optional<XmlElement> elem = XmlConverter.getChildOpt(s, "query", "pages", "page");
          token = elem.transform(TOKEN_FUNCTIONS.get(intoken));
          // TODO check intoken from tokenfunc for null
  
          log.debug("urlEncodedToken = {} for: {}", token, msg.getRequest());
          // TODO check catch
        } catch (IllegalArgumentException e) {
          if (s.startsWith("unknown_action:")) {
            log.error(
                "Adding '$wgEnableWriteAPI = true;' "
                    + "to your MediaWiki's LocalSettings.php might remove this problem.",
                e);
          } else {
            log.error(e.getMessage(), e);
          }
        }
      }
    }
docs: {@inheritDoc}