FutureConnection futureConnection = configuredConnections.get(connectionKey);
if (futureConnection != null) {
return futureConnection.get();
}
FutureConnection appearing;
<BUG>futureConnection = new FutureConnection(this, destination, false);
if ((appearing = configuredConnections.putIfAbsent(connectionKey, futureConnection)) != null) {</BUG>
return appearing.get();
}
return futureConnection.get();

FutureConnection futureConnection = configuredConnections.get(connectionKey);
if (futureConnection != null) {
return futureConnection.get();
}
FutureConnection appearing;
futureConnection = new FutureConnection(this, null, destination, false, OptionMap.EMPTY, RemotingXmlParser.getGlobalDefaultAuthCtxt(), SaslFactories.getElytronSaslClientFactory());
if ((appearing = configuredConnections.putIfAbsent(connectionKey, futureConnection)) != null) {
return appearing.get();
}
return futureConnection.get();
