protected void restoreAttributes ( ) { if ( replacedAttributes != null ) { for ( int scope = 0 ; scope < replacedAttributes . size ( ) ; scope ++ ) { Map < String , Object > replaced = replacedAttributes . get ( scope ) ; for ( Map . Entry < String , Object > entry : replaced . entrySet ( ) ) { String key = entry . getKey ( ) ; Object value = entry . getValue ( ) ; if ( value != null ) { pageContext . setAttribute ( key , value , scope ) ; } else { pageContext . removeAttribute ( key , scope ) ; } } } } }
restores all replaced values and removes all attributes declared in this tag