// add a node to the tree
DefaultSiteTree siteTree = publication.getSiteTree(Publication.AUTHORING_AREA);
Label[] labels = new Label[1];
labels[0] = new Label(childname, language);
siteTree.addNode(parentid, creator.generateTreeId(childid, childType), labels, visibleInNav);
// Transaction should actually be finished here!
// Create actual document
// grab all the parameters from session, request params and
// sitemap params