public void setSessionAttribute(String attrName, Object attr) {
        if (this.sessionAttributes.containsKey(attrName)) {
            this.sessionAttributes.replace(attrName, attr);
        } else {
            this.sessionAttributes.put(attrName, attr);
        }
    }