docs: protected static Attributes buildAttributes(final Map attributes) {
          final AttributesImpl attr = new AttributesImpl();
          for (Object o : attributes.entrySet()) {
              final Map.Entry entry = (Map.Entry) o;
              final String attributeName = (String) entry.getKey();
              final String attributeValue = String.valueOf(entry.getValue());
              attr.addAttribute(null, attributeName, attributeName, "CDATA", attributeValue);
          }
          return attr;
      }