code: AttributedCharacterIterator createAttributedCharacterIterator(
                AttributedCharacterIterator iterator,
                AttributedCharacterIterator.Attribute key, Object value) {
          AttributedString as = new AttributedString(iterator);
  
          as.addAttribute(key, value);
          return as.getIterator();
      }
docs: Creates an AttributedCharacterIterator with the contents of
  <code>iterator</code> and the additional attribute <code>key</code>
  <code>value</code>.
  
  @param iterator Initial AttributedCharacterIterator to add arg to
  @param key Key for AttributedCharacterIterator
  @param value Value associated with key in AttributedCharacterIterator
  @return AttributedCharacterIterator wrapping args