public byte[] serialize(AgentEventType agentEventType, Object eventMessage) {
        Objects.requireNonNull(agentEventType, "agentEventType");


        if (eventMessage instanceof DeadlockBo deadlockBo) {
            return serializeDeadlockBo(deadlockBo);
        }

        throw new IllegalArgumentException("Unsupported event message type [" + eventMessage.getClass().getName() + "]");
    }
@author jaehong.kim
AgentEventBo.version is 1
commons-server/src/main/java/com/navercorp/pinpoint/common/server/util/AgentEventMessageSerializerV1.java