code: protected Account authenticate(String username, String password) {
          StandardCredentials authenticationToken = new StandardCredentials(username, password);
          Account account = securityManager.authenticate(authenticationToken);
          return account;
      }
docs: Authenticate the supplied credentials and setup the Context.
  
  @param username
  @param password
  @return an account if the authentication is successful