private TxClientPool getClientPool() { if (clients != null) { return clients; } synchronized (this) { if (clients == null) { try { initializePool(); } catch (TException e) { throw new RuntimeException("Failed to initialize transaction client provider: " + this, e); } } } return clients; } }