docs: @Override
      public void dispose(final Session session) {
          if (session != null && session.isConnected()) {
              logger.trace("Disposing of hibernate session.");
              session.close();
          }
      }