validateDD(xmlObject);
    public static EjbJarDocument convertToEJBSchema(XmlObject xmlObject) {        XmlCursor cursor = xmlObject.newCursor();        XmlCursor moveable = xmlObject.newCursor();        String schemaLocationURL = "http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd";        String version = "2.1";        try {            convertToSchema(cursor, schemaLocationURL, version);            //play with message-driven            cursor.toStartDoc();            convertBeans(cursor, moveable);        } finally {            cursor.dispose();        }        XmlObject result = xmlObject.changeType(EjbJarDocument.type);        if (result != null) {            return (EjbJarDocument) result;        }        return (EjbJarDocument) xmlObject;    }