code: public Properties getAttributes(Attributes attrs) {
          Properties attributes = new Properties();
          attributes.putAll(attributeValues);
          if (defaultContent != null) {
              attributes.put(ElementTags.ITEXT, defaultContent);
          }
          if (attrs != null) {
              for (int i = 0; i < attrs.getLength(); i++) {
                  String attribute = getName(attrs.getQName(i));
                  attributes.setProperty(attribute, attrs.getValue(i));
              }
          }
          return attributes;
      }
docs: Gets the list of attributes of the peer.
  @param attrs the user defined set of attributes
  @return the set of attributes translated to iText attributes