@Override
    public void destroy() {
        try {
            LOGGER.trace("Closing Cassandra session");
            session.close();
        } catch (final Exception e) {
            LoggingUtils.warn(LOGGER, e);
        }
    }
This is {@link DefaultCassandraSessionFactory}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-cassandra-core/src/main/java/org/apereo/cas/cassandra/DefaultCassandraSessionFactory.java