public static boolean doWithoutThrows(final Consumer<Object> func, final Object... params) {
        try {
            func.accept(params);
            return true;
        } catch (final Throwable e) {
            LoggingUtils.warn(LOGGER, e);
            return false;
        }
    }
Do without throws and return status.

@param func   the func
@param params the params
@return true /false
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java