@Override
    public boolean isAvailable() {
        try (val connection = entityDataSource.getConnection()) {
            return connection != null;
        } catch (final Exception e) {
            LoggingUtils.error(LOGGER, e);
            return false;
        }
    }
This is {@link JpaMultifactorAuthenticationTrustStorage}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-trusted-mfa-jdbc/src/main/java/org/apereo/cas/trusted/authentication/storage/JpaMultifactorAuthenticationTrustStorage.java