public final void populateProperties(InternalSession oldSession,InternalSession newSession,boolean forceAuth){
  Enumeration<String> allProperties=oldSession.getPropertyNames();
  while (allProperties.hasMoreElements()) {
    String key=allProperties.nextElement();
    String value=(String)oldSession.getProperty(key);
    if (shouldCopy(key)) {
      if (!forceAuth) {
        updateProperty(newSession,key,value);
      }
 else {
        updateProperty(oldSession,key,value);
      }
    }
  }
}

public final void populateProperties ( InternalSession oldSession , InternalSession newSession , boolean forceAuth ) { Enumeration < String > allProperties = oldSession . getPropertyNames ( ) ; while ( allProperties . hasMoreElements ( ) ) { String key = allProperties . nextElement ( ) ; String value = ( String ) oldSession . getProperty ( key ) ; if ( shouldCopy ( key ) ) { if ( ! forceAuth ) { updateProperty ( newSession , key , value ) ; } else { updateProperty ( oldSession , key , value ) ; } } } }
entry point for loginstate . this method is called during session upgrade in order to copy session attributes from one session to another .
