} catch (Exception ex) {
status = Status.ERROR;
reason = ex.getMessage();
if (ex instanceof BrokerException) status = ((BrokerException)ex).getStatusCode();
}
sendReply(con, msg, msg.getPacketType() + 1, status, id.longValue(), reason);
break;
case PacketType.PREPARE_TRANSACTION:
BrokerException bex = null;
try {
doPrepare(id, xaFlags, ts, msg.getPacketType(), jmqonephase, null);