protoNetwork1.getNamespaceTable().addNamespace(ns, did);
}
// union annotation definition values
Map<Integer, Integer> adremap = new HashMap<Integer, Integer>();
AnnotationDefinitionTable adt =
protoNetwork2.getAnnotationDefinitionTable();
for (TableAnnotationDefinition ad : adt.getAnnotationDefinitions()) {
Integer oldDefinitionId = adt.getDefinitionIndex().get(ad);
Integer newDefinitionId = protoNetwork1
.getAnnotationDefinitionTable()
.addAnnotationDefinition(ad, did);
adremap.put(oldDefinitionId, newDefinitionId);