Application combinedApp = new Application(application.getApplicationName(), application.getComponents());
applications.put(application.getApplicationName(), combinedApp);
}
for (ConnectionPool currentPool : current.getPools()) {
ConnectionPool combinedPool = pools.get(currentPool.getJndiName());
if (combinedPool == null) {
combinedPool = new ConnectionPool();
combinedPool.setJndiName(currentPool.getJndiName());
pools.put(currentPool.getJndiName(), combinedPool);
}
combinedPool.setNumconnfree(currentPool.getNumconnfree() + combinedPool.getNumconnfree());
combinedPool.setNumconnused(currentPool.getNumconnused() + combinedPool.getNumconnused());
combinedPool.setNumpotentialconnleak(currentPool.getNumpotentialconnleak() + combinedPool.getNumpotentialconnleak());
combinedPool.setWaitqueuelength(currentPool.getWaitqueuelength() + combinedPool.getWaitqueuelength());
}
//logs.addAll(current.getLogRecords());
}