code: private Attributes createAttributes(String[][] parameters)
      {
          AttributesImpl attributes = new AttributesImpl();
  
          if (parameters != null && parameters.length > 0) {
              for (String[] entry : parameters) {
                  attributes.addAttribute(null, null, entry[0], null, entry[1]);
              }
          }
  
          return attributes;
      }
docs: Convert provided table into {@link Attributes} to use in xml writer.