public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
if (firstInstance) {
// Determine which JSF implementation is being used (Mojarra/MyFaces).
ProductMap productMap = ProductMap.getInstance();
Product jsf = productMap.get(ProductConstants.JSF);
boolean mojarraAbleToCleanup = true;
if (jsf.getTitle().equals(ProductConstants.MOJARRA) && (jsf.getMajorVersion() == 2) &&
(jsf.getMinorVersion() == 1)) {
if (jsf.getRevisionVersion() < 18) {
mojarraAbleToCleanup = false;
boolean logWarning = true;
Product iceFaces = productMap.get(ProductConstants.ICEFACES);
if (iceFaces.isDetected()) {
if ((iceFaces.getMajorVersion() == 2) ||
((iceFaces.getMajorVersion() == 3) && (iceFaces.getMinorVersion() <= 2))) {