code: public synchronized void refreshWithPassword(String username, String password) throws AuthenticationException {
  		refreshWithPassword(username, password, null);
  	}
docs: Refreshes the current session manually using password.
  
  @param username the username
  @param password the password
  @throws AuthenticationException If an exception occurs during the
  authentication