private static void appendChildPaddedForDepth(Node parentNode, Node childNode, JoeTree tree, Node tempRoot) {
	
		//This should only happen when we are at the top of the tree.
		if (parentNode == null) {
			parentNode = new NodeImpl(tree,"");
			tempRoot.appendChild(parentNode);
		}
		
		int childDepth = childNode.getDepth();
		while ((parentNode.getDepth() + 1) < childDepth) {
			Node newNode = new NodeImpl(tree,"");
			parentNode.appendChild(newNode);
			parentNode = newNode;
			padRetVal = SUCCESS_MODIFIED;
		}
		
		parentNode.appendChild(childNode);
		return;
	}