public static String getScopedSessionAttrName ( String attrName , HttpServletRequest request ) { String requestScopeParam = request . getParameter ( SCOPE_ID_PARAM ) ; if ( requestScopeParam != null ) { return getScopedName ( attrName , requestScopeParam ) ; } ScopedRequest scopedRequest = unwrapRequest ( request ) ; return scopedRequest != null ? scopedRequest . getScopedName ( attrName ) : attrName ; }
If the request is a ScopedRequest this returns an attribute name scoped to that request s scope - ID ; otherwise it returns the given attribute name .