ua.start();
System.out.println("Started: "+ua.activityName()+"\n");
DeploymentContext manager = DeploymentContextFactory.deploymentContext();
Context theContext = manager.context();
((SOAPContext)theContext).serialiseToElement(root);
org.w3c.dom.Document doc = docBuilder.newDocument();
doc.appendChild(root);
System.out.println(XMLUtils.writeToString(doc));
ua.end();
System.out.println("\nFinished child activity.\n");
theContext = manager.context();
root = factory.createElement("Context2-test");
((SOAPContext)theContext).serialiseToElement(root);
doc = docBuilder.newDocument();
doc.appendChild(root);
System.out.println(XMLUtils.writeToString(doc));
ua.end();
System.out.println("\nFinished parent activity.\n");
theContext = manager.context();
root = factory.createElement("Context2-test");
((SOAPContext)theContext).serialiseToElement(root);