try {
// If we are working with a datasource
if (className.equals("javax.sql.DataSource")) {
try {
return new WinstoneDataSource(name, extractRelevantArgs(args, name), loader);
} catch (Throwable err) {
Logger.log(Logger.ERROR, JNDI_RESOURCES,
"ContainerJNDIManager.ErrorBuildingDatasource", name, err);
}
}