public void storeUsername(String username){
  if (isStore && sharedState != null) {
    sharedState.put(getUserKey(),username);
  }
}

public void storeUsername ( String username ) { if ( isStore && sharedState != null ) { sharedState . put ( getUserKey ( ) , username ) ; } }
stores user name into shared state map . this method should be called after successful authentication by each individual module if a username was supplied by that module .
