if (ConnectorDocument.type.equals(xmlObject.schemaType())) {
XmlBeansUtil.validateDD(xmlObject);
return (ConnectorDocument) xmlObject;
}
XmlCursor cursor = xmlObject.newCursor();
XmlDocumentProperties xmlDocumentProperties = cursor.documentProperties();
String publicId = xmlDocumentProperties.getDoctypePublicId();
try {
if ("-//Sun Microsystems, Inc.//DTD Connector 1.0//EN".equals(publicId)) {
XmlCursor moveable = xmlObject.newCursor();
try {