{
return new ProtocolVersion(pe.getMajor(), pe.getMinor());
}
catch (ConnectionException ce)
{
AMQConstant code = AMQConstant.REPLY_SUCCESS;
if (ce.getClose() != null && ce.getClose().getReplyCode() != null)
{
code = AMQConstant.getConstant(ce.getClose().getReplyCode().getValue());
}
String msg = "Cannot connect to broker: " + ce.getMessage();