protected void readPacket(LogRecord logRecord, QueueMessageContainer container) {
if (!logRecord.isCTRL() && !logRecord.isEOB() && logRecord.length > 0) {
try {
// TODO for some wierd reason we get an unnecessary long which I'm guessing is the size
Packet packet = wireFormat.fromBytes(logRecord.data, 2, logRecord.length - 2);
if (packet instanceof ActiveMQMessage) {
container.addMessage((ActiveMQMessage) packet);
}
else if (packet instanceof MessageAck) {
MessageAck ack = (MessageAck) packet;