//TODO: Get rid of this conversion asap
Set<SecurityRoleRef> srset = new HashSet<SecurityRoleRef>();
for(SecurityRoleRefMetaData srmd: roleRefs)
{
srset.add(new SecurityRoleRef(srmd.getRoleName(),srmd.getRoleLink(),null));
}
Principal principal = getCallerPrincipal(sc, rm, domain);
AbstractEJBAuthorizationHelper helper;
try
{