GerWebAppDocument webAppDocument = GerWebAppDocument.Factory.newInstance();
webAppDocument.setWebApp(warConfig.getWebApp());
// See http://xmlbeans.apache.org/docs/2.0.0/guide/conHandlingAny.html
XmlCursor xsAnyCursor = webAppDocument.newCursor();
xsAnyCursor.toNextToken();
XmlCursor rootCursor = newModule.newCursor();
rootCursor.toEndToken();
xsAnyCursor.moveXml(rootCursor);
xsAnyCursor.dispose();