need a util for public boolean isAnonymousUser(UserInfo userInfo)