securityManager.addRole("frank", "us-user");
securityManager.addRole("frank", "news-user");
securityManager.addRole("frank", "user");
securityManager.addRole("sam", "news-user");
securityManager.addRole("sam", "user");
Role all = new Role("all", true, true, true, true, true, true, true);
HierarchicalRepository<Set<Role>> repository = server.getSecurityRepository();
Set<Role> add = new HashSet<Role>();
add.add(new Role("user", true, true, true, true, true, true, false));
add.add(all);
repository.addMatch("#", add);
Set<Role> add1 = new HashSet<Role>();
add1.add(all);
add1.add(new Role("user", false, false, true, true, true, true, false));
add1.add(new Role("europe-user", true, false, false, false, false, false, false));
add1.add(new Role("news-user", false, true, false, false, false, false, false));
repository.addMatch("news.europe.#", add1);
Set<Role> add2 = new HashSet<Role>();
add2.add(all);
add2.add(new Role("user", false, false, true, true, true, true, false));
add2.add(new Role("us-user", true, false, false, false, false, false, false));
add2.add(new Role("news-user", false, true, false, false, false, false, false));
repository.addMatch("news.us.#", add2);
ClientSession billConnection = null;
ClientSession andrewConnection = null;
ClientSession frankConnection = null;
ClientSession samConnection = null;