}
m_node.addPath(loopPath);
}
public void updateGenerator() throws Exception {
TreeMapper treeMapper=m_node.getTreeMapper();
TreeComponent targetTC=m_node.getTreeComponent();
TreeComponent sourceTC=treeMapper.m_sourceTreeComponent;
if(m_RootLoopParent!=null)m_RootLoopParent.resetLoopBranches(sourceTC);
Node targetRoot=targetTC.m_root;
Map<Node,Node> generatorMap=treeMapper.m_generatorMap;
generatorMap.clear(); // this is necessary due to the refresh problem
Map<Node,Set<Node>> conflictMap=treeMapper.m_conflictMap;
Set<InvalidMapping> invalidMappings=Sets.newHashSet();
Node sourceRoot=sourceTC.getDtdRoot();
clearTargetLoopList(sourceRoot);
String startingGenerator=Utils.removeBrackets(sourceRoot.m_deName);
targetRoot.m_mappingKits.updateGenerator(startingGenerator, sourceTC, generatorMap, conflictMap, invalidMappings);
treeMapper.getMappingManager().setConflictMappings(invalidMappings);
}