// Get the parent of current node
MappingBaseNode parent = baseNode.getParentNode();
// remove the current node from its parent
parent.removeChildNode(baseNode);
// make source is child of current nodes parent
parent.addSourceNode(sourceNode);
// now make the current node, child of the source.