Configuration[] drivers = conf.getChildren("driver");
for (int i = 0; i < drivers.length; i++) {
String type = drivers[i].getAttribute("type");
String driver = drivers[i].getAttribute("class");
SourceCredential credential = new SourceCredential(null, null);
credential.setPrincipal(drivers[i].getAttribute("user", null));
credential.setPassword(drivers[i].getAttribute("password", null));
credentialMap.put(type, credential);
if (getLogger().isDebugEnabled()) {
getLogger().debug("Initializing XML:DB connection, using driver " + driver);
}