// we found web.xml, if it won't parse that's an error.
XmlObject parsed = XmlBeansUtil.parse(specDD);
//Dont save updated xml if it isn't javaee
XmlCursor cursor = parsed.newCursor();
try {
cursor.toStartDoc();
cursor.toFirstChild();
isJavaee = "http://java.sun.com/xml/ns/javaee".equals(cursor.getName().getNamespaceURI());
} finally {
cursor.dispose();
}