docs: private void handleAddWanConfig(HttpPostCommand command) throws UnsupportedEncodingException {
          String res;
          String[] params = decodeParams(command, 1);
          String wanConfigJson = params[0];
          try {
              WanReplicationConfigDTO dto = new WanReplicationConfigDTO(new WanReplicationConfig());
              dto.fromJson(Json.parse(wanConfigJson).asObject());
  
              AddWanConfigResult result = textCommandService.getNode().getNodeEngine()
                                                            .getWanReplicationService()
                                                            .addWanReplicationConfig(dto.getConfig());
              res = response(ResponseType.SUCCESS,
                      "message", "WAN configuration added.",
                      "addedPublisherIds", result.getAddedPublisherIds(),
                      "ignoredPublisherIds", result.getIgnoredPublisherIds());
          } catch (Exception ex) {
              logger.warning("Error occurred while adding WAN config", ex);
              res = exceptionResponse(ex);
          }
          command.setResponse(HttpCommand.CONTENT_TYPE_JSON, stringToBytes(res));
      }