Connector connector;
try {
connector = (Connector) JaxbJavaee.unmarshalJavaee(Connector.class, IO.read(url));
} catch (JAXBException e) {
try {
Connector10 connector10 = (Connector10) JaxbJavaee.unmarshalJavaee(Connector10.class, IO.read(url));
connector = Connector.newConnector(connector10);
} catch (ParserConfigurationException e1) {
throw new OpenEJBException("Cannot parse the ra.xml file: " + url.toExternalForm(), e);
} catch (SAXException e1) {
throw new OpenEJBException("Cannot parse the ra.xml file: " + url.toExternalForm(), e);