- Compute initialCapacity of StringBuilders depending of items.size() in getContentAsString().
- Remove unused Calendar and don't make a local title reference in getContentAsString().
- Remove redundant putting to channel code in write(), this is done in getDocument().
- Remove outcommented debug code.