public static void addInfoMessageToContext(final RequestContext requestContext, final String code) {
        val msg = new MessageBuilder()
            .info()
            .code(code)
            .build();
        requestContext.getMessageContext().addMessage(msg);
    }
Add info message to context.

@param requestContext the request context
@param code           the code
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java