private static String serializeToJson(Object object) throws JsonProcessingException {
        return mapper.writer().writeValueAsString(object);
    }
Receives an event and returns a response if one should be sent.
graphql/src/main/java/com/linecorp/armeria/server/graphql/GraphqlWSSubProtocol.java