}
List extraNamespaces = new ArrayList();
NamespaceResolver nr = recordToModify.getNamespaceResolver();
for (Object iter = cp.iteratorFor(attributeValue); cp.hasNext(iter);) {
Map.Entry entry = (Map.Entry)cp.nextEntry(iter, session);
Object key = entry.getKey();
if ((key != null) && key instanceof QName) {
Object value = entry.getValue();
QName attributeName = (QName) key;
String namespaceURI = attributeName.getNamespaceURI();