private User createAnonUser(){
  for (int i=0; i < 10; ++i) {
    final User user=dbLogic.createUser("anon" + randInt(1,Integer.MAX_VALUE));
    if (user != null) {
      user.setWasCreatedAsAnon(true);
      user.setIsAnon(true);
      return user;
    }
  }
  return null;
}

private User createAnonUser ( ) { for ( int i = 0 ; i < 10 ; ++ i ) { final User user = dbLogic . createUser ( "anon" + randInt ( 1 , Integer . MAX_VALUE ) ) ; if ( user != null ) { user . setWasCreatedAsAnon ( true ) ; user . setIsAnon ( true ) ; return user ; } } return null ; }
tries a few times to create an anonymous user .
