//For Security Role Refs, we check that there is a principal
ejbResource.setPrincipal(new SimplePrincipal("SomePrincipal"));
//Additional entries needed for role ref
Set<SecurityRoleRef> roleRefSet = new HashSet<SecurityRoleRef>();
SecurityRoleRef srr = new SecurityRoleRef( "roleLink", "roleA", "something");
roleRefSet.add(srr);
ejbResource.setSecurityRoleReferences(roleRefSet);
cmap.put(ResourceKeys.ROLEREF_PERM_CHECK, Boolean.TRUE);
cmap.put(ResourceKeys.ROLENAME, "roleLink");