private byte[] serializeDeadlockBo(final DeadlockBo deadlockBo) {
        final Buffer buffer = new AutomaticBuffer();
        buffer.putInt(deadlockBo.getDeadlockedThreadCount());
        // Put ThreadDumpBoList
        final int threadDumpBoListSize = deadlockBo.getThreadDumpBoList() == null ? 0 : deadlockBo.getThreadDumpBoList().size();
        buffer.putVInt(threadDumpBoListSize);
        if (threadDumpBoListSize > 0) {
            for (ThreadDumpBo threadDumpBo : deadlockBo.getThreadDumpBoList()) {
                putThreadDumpBo(buffer, threadDumpBo);
            }
        }
        return buffer.getBuffer();
    }
@author jaehong.kim
AgentEventBo.version is 1
commons-server/src/main/java/com/navercorp/pinpoint/common/server/util/AgentEventMessageSerializerV1.java