JDOAction action1 = new JDOAction(1,"action1","/action1/");
JDOAction action2 = new JDOAction(2,"action2","/action2/");
JDOAction action3 = new JDOAction(3,"action3","/action3/");
JDOAction action4 = new JDOAction(4,"action4","/action4/");
JDORole role1 = new JDORole(1, "role1", scopes1, new ArrayList());
JDORole role2 = new JDORole(2, "role2", scopes2, new ArrayList());
role1.addAction(action1, true, 1);
role1.addAction(action3, true, 1);
role2.addAction(action2, true, 2);
role2.addAction(action4, true, 2);
Collection roles = new ArrayList();
roles.add(role1);
roles.add(role2);