public static ReceivedMessage unpack(ByteBuffer buf, ClassLoader classLoader)
throws PackerException
{
ObjectInputStream in = null;
try {
in = new WonderlandObjectInputStream(getInputStream(buf), classLoader);
ReceivedMessage msg = serializationUnpack(buf, in);
in.close();
if (messageMonitor != null) {
messageMonitor.received(msg.getMessage(), buf.capacity());