353354355356357358359360361
private boolean checkProtocol(String headerProt) { boolean ok = "AMQP".equals(headerProt); if (!ok) { protonConnection.setCondition(new ErrorCondition(AmqpError.ILLEGAL_STATE, "Unknown Protocol " + headerProt)); } return ok; }