String wrapperclass = (String) XAResourceWrappers.get(
datasourceClassname);
if (wrapperclass != null) {
//need to load wrapper class provided by "transactions" module.
//Using connector-class-loader so as to get access to "transaction" module.
XAResourceWrapper xaresWrapper = null;
xaresWrapper = (XAResourceWrapper) crt.getConnectorClassLoader().loadClass(wrapperclass).
newInstance();
xaresWrapper.init(mc, subject);
if (_logger.isLoggable(Level.FINEST)) {
_logger.finest("adding resource " + poolInfo + " -- "+xaresWrapper);
}
xaresList.add(xaresWrapper);
} else {