private ByteBuf convertStringData(final List<Object> data, final boolean addStartingSeparator, final ByteBufAllocator allocator) {
        final StringBuilder sb = new StringBuilder();

        if (addStartingSeparator) sb.append(System.lineSeparator());
        // this should only serialize success conditions so all should have data in List form
        for (int ix = 0; ix < data.size(); ix ++) {
            sb.append("==>");
            sb.append(data.get(ix));
            if (ix < data.size() - 1)
                sb.append(System.lineSeparator());
        }

        final ByteBuf encodedMessage = allocator.buffer(sb.length());
        encodedMessage.writeCharSequence(sb.toString(), CharsetUtil.UTF_8);

        return encodedMessage;
    }
A highly use-case specific serializer that only has context for HTTP where results simply need to be converted
to string in a line by line fashion for text based returns.
gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/TextPlainMessageSerializer.java