* @throws JMSException
*/
public Packet readPacket(RecordLocation location) throws JMSException {
try {
org.activeio.Packet data = journal.read(location);
DataInputStream is = new DataInputStream(new PacketInputStream(data));
byte type = is.readByte();
if (type != PACKET_RECORD_TYPE) {
throw new IOException("Record is not a packet type.");
}
String destination = is.readUTF();