String clName =
jdbcConnectionPool.getDatasourceClassname();
String wrapperclass = (String)xaresourcewrappers.get(
clName);
if(wrapperclass!=null){
XAResourceWrapper xaresWrapper = null;
try{
xaresWrapper = (XAResourceWrapper)Class.forName(
wrapperclass).newInstance();
}catch(Exception ex){
throw ex;
}
xaresWrapper.init(mc,subject);
xaresList.addElement(xaresWrapper);
}else{
xaresList.addElement(xares);
}
}