public void removeAttribute(String name){
  if (session != null) {
    session.removeAttribute(name);
    internalAttributes.remove(name);
  }
 else {
    internalAttributes.remove(name);
  }
}

public void removeAttribute ( String name ) { if ( session != null ) { session . removeAttribute ( name ) ; internalAttributes . remove ( name ) ; } else { internalAttributes . remove ( name ) ; } }
removes an attribute from the session , either from local object pre serialization or the stored value post serialization .
