public static ByteBuffer wrapNullable(byte[] array) {
        return array == null ? null : ByteBuffer.wrap(array);
    }
Wrap an array as a nullable ByteBuffer.
@param array The nullable array to wrap
@return The wrapping ByteBuffer or null if array is null
clients/src/main/java/org/apache/kafka/common/utils/Utils.java