// Assert that the existing client is alive
BrokerClient existingClient = (BrokerClient) clientIds.get(clientId);
JMSException ex = null;
boolean isValid = true;
try {
existingClient.validateConnection(timeout);
} catch (JMSException e) {
isValid = false;
ex = e;
}
if (isValid) {