public static RenderingContext anonymous ( final ApplicationInfo appInfo , final CalendarProvider provider ) { final UserImpl user2 = new UserImpl ( ) ; user2 . setUsername ( "Anonymous" ) ; user2 . setFirstname ( "Al" ) ; user2 . setLastname ( "Anonymous" ) ; user2 . clearRoles ( ) ; user2 . setEmail ( "anon@gmail.com" ) ; return new RenderingContext ( user2 , appInfo , provider ) ; }
Special case anonymous context .