//Check the target namespace of the WSDL and determine the WSDL version.
int version = getWSDLVersion(doc);
if (version == org.apache.axis2.wsdl.WSDLConstants.WSDL_1_1) {
return new WSDL1ToWOMBuilder();
} else if (version == org.apache.axis2.wsdl.WSDLConstants.WSDL_2_0) {
return new WSDL2ToWOMBuilder();
}
throw new WSDLException(WSDLException.OTHER_ERROR,