public static Bytes wrap(byte[] bytes) {
        if (bytes == null)
            return null;
        return new Bytes(bytes);
    }
Utility class that handles immutable byte arrays.
clients/src/main/java/org/apache/kafka/common/utils/Bytes.java