public static VotersRecord deserializeVotersRecord(ByteBuffer data) {
        return new VotersRecord(new ByteBufferAccessor(data.slice()), KRAFT_VOTERS_CURRENT_VERSION);
    }
Utility class for easy interaction with control records.
clients/src/main/java/org/apache/kafka/common/record/ControlRecordUtils.java