EZP-21952: setting anonymous as current user in RepositoryFactory