public static String inflate(final byte[] bytes) {
        val inflater = new Inflater(true);
        val xmlMessageBytes = new byte[INFLATED_ARRAY_LENGTH];

        val extendedBytes = new byte[bytes.length + 1];
        System.arraycopy(bytes, 0, extendedBytes, 0, bytes.length);
        extendedBytes[bytes.length] = 0;
        inflater.setInput(extendedBytes);

        return FunctionUtils.doAndHandle(() -> {
            val resultLength = inflater.inflate(xmlMessageBytes);
            inflater.end();
            return new String(xmlMessageBytes, 0, resultLength, StandardCharsets.UTF_8);
        }, throwable -> null).get();
    }
Inflate the byte[] to a string.

@param bytes the data to decode
@return the new string
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/CompressionUtils.java