}
XPathFragment groupingElements = marshalRecord.openStartGroupingElements(namespaceResolver);
List extraNamespaces = new ArrayList();
NamespaceResolver nr = marshalRecord.getNamespaceResolver();
while (cp.hasNext(iter)) {
Map.Entry entry = (Map.Entry)cp.nextEntry(iter, session);
Object key = entry.getKey();
if (key instanceof QName) {
QName name = (QName) key;
String value = entry.getValue().toString();