String dsName = dsConfig.getValue();
String dsType = dsConfig.getAttribute("provider", "jndi");
ConnectionProvider provider;
if (dsType.equals("jndi")) {
provider = new JNDIConnectionProvider(dsName, false);
} else if (dsType.equals("excalibur")) {
provider = new DataSourceComponentConnectionProvider(dsName, this.manager);
} else {
// assume class name
try {