// make source is child of current nodes parent
parent.addSourceNode(sourceNode);
// now make the current node, child of the source.
sourceNode.addChild(baseNode);
sourceNode.setExclude(baseNode.isExcluded());
sourceNode.setMinOccurrs(baseNode.getMinOccurence());
sourceNode.setMaxOccurrs(baseNode.getMaxOccurence());
sourceNode.setStagingTables(baseNode.getStagingTables());
baseNode.setSource(null);