public static <T extends CharSequence> void doIfNotBlank(final T input, final CheckedConsumer<T> trueFunction) {
        try {
            if (StringUtils.isNotBlank(input)) {
                trueFunction.accept(input);
            }
        } catch (final Throwable e) {
            LoggingUtils.warn(LOGGER, e);
        }
    }
Do if not blank.

@param input        the input
@param trueFunction the true function
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java