code: @Override
    public void filter(IKeyValuePair keyValuePair) {
      keyValuePair.setKey(escapeKeyName(keyValuePair.getKey()));
      if (keyValuePair.getValue() != null) {
        keyValuePair.setValue(escapeXmlSpecialCharacters(keyValuePair.getValue()));
      }
    }
docs: {@inheritDoc}