/* 434 */ if (trace) {
/* 435 */ this.log.trace("Checking driver for URL: " + url);
/* */ }
/* 437 */ if (this.driverClass == null)
/* */ {
/* 439 */ throw new JBossResourceException("No Driver class specified (url = " + url + ")!");
/* */ }
/* */
/* 444 */ if (isDriverLoadedForURL(url))
/* */ {
/* 446 */ return this.driver;
/* */ }
/* */
/* */ try
/* */ {
/* 452 */ Class clazz = Class.forName(this.driverClass, true, Thread.currentThread().getContextClassLoader());
/* 453 */ if (isDriverLoadedForURL(url))
/* */ {
/* 455 */ return this.driver;
/* */ }
/* */
/* 459 */ this.driver = ((Driver)clazz.newInstance());
/* 460 */ DriverManager.registerDriver(this.driver);
/* 461 */ if (isDriverLoadedForURL(url)) {
/* 462 */ return this.driver;
/* */ }
/* */ }
/* */ catch (Exception e)
/* */ {
/* 467 */ throw new JBossResourceException("Failed to register driver for: " + this.driverClass, e);
/* */ }
/* */
/* 470 */ throw new JBossResourceException("Apparently wrong driver class specified for URL: class: " + this.driverClass + ", url: " + url);
/* */ }