code: protected final boolean isAuthenticated(Context context) {
          Account account = context.getSession(AuthConstants.ACCOUNT_ATTRIBUTE);
          if (account == null) {
              account = context.getLocal(AuthConstants.ACCOUNT_ATTRIBUTE);
          }
          return account != null && account.isAuthenticated();
      }
docs: Determines if the current Context has already been authenticated.
  
  @param context
  @return true if this Context is authenticated.