ByteBuffer buffer = packet.getBuffer();
byte[] b = new byte[buffer.remaining()];
buffer.get(b);
for (int i = buffer.position(); i < buffer.limit(); i++) {
if (b[i] != (byte) 0x0b) throw new ProtocolException("bb");
}
Subject subject = MetadataSupport.getSubject(packet);
if (subject != null) log.trace("Subject passed: " + subject);
if (getUpProtocol() != null) getUpProtocol().sendUp(packet);