public static InputStreamResource buildInputStreamResourceFrom(final String value, final String description) {
        return FunctionUtils.doUnchecked(() -> {
            val reader = new StringReader(value);
            val is = ReaderInputStream.builder().setReader(reader).setCharset(StandardCharsets.UTF_8).get();
            return new InputStreamResource(is, description);
        });
    }
Build input stream resource from string value.

@param value       the value
@param description the description
@return the input stream resource
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/ResourceUtils.java