private void transferForeignObjects(AreaTreeObject ato) {
Map prefixes = new java.util.HashMap();
Iterator iter = ato.getForeignAttributes().entrySet().iterator();
while (iter.hasNext()) {
Map.Entry entry = (Map.Entry)iter.next();
QName qname = (QName)entry.getKey();
prefixes.put(qname.getPrefix(), qname.getNamespaceURI());
addAttribute(qname, (String)entry.getValue());
}
//Namespace declarations
iter = prefixes.entrySet().iterator();
while (iter.hasNext()) {