HORNETQ-1146 use XMLUtils.* to ensure trimming.
Fixes https://community.jboss.org/message/799295
https://issues.jboss.org/browse/HORNETQ-1137 Optimization on queue-delivery, avoiding sync during actual delivery
Fixing groupIterator.remove as that would cause concurrentModificationException on the groupMaps