AbstractPacketMarshaller marshaller = getMarshaller(packet);
if (marshaller == null) {
throw new JMSException("No marshaller for packet type: " + packet.getPacketType() + " value: " + packet);
}
out.writeByte(marshaller.getPacketType());
marshaller.writePacket(packet, out);
return packet;
}
protected Packet readPacket(DataInput dataIn, AbstractPacketMarshaller marshaler) throws IOException {