try
{
ManagedConnectionPool mcp = mcpPools.get(key);
if (mcp == null)
{
ManagedConnectionPoolFactory mcpf = new ManagedConnectionPoolFactory();
ManagedConnectionPool newMcp = mcpf.create(mcf, clf, subject, cri, poolConfiguration, this, log);
mcp = mcpPools.putIfAbsent(key, newMcp);
if (mcp == null)
{
mcp = newMcp;