Map<Object, Object> props = new HashMap<Object, Object>();
props.put("code", code);
props.put("level", "status");
props.put("duration", duration);
props.put("bytes", bytes);
out.writeMap(props, new Serializer());
buf.flip();
IRTMPEvent event = new Notify(buf);
if (lastMessage != null) {
int timestamp = lastMessage.getTimestamp();