SipBundleDescriptor sbd = (SipBundleDescriptor) descriptor;
SunWebApp sunSipDesc = sbd.getSipApplication().getSunSipDescriptor();
SecurityRoleMapping[] srmList = sunSipDesc.getSecurityRoleMapping();
//SecurityRoleMapping[] srmList = ((WebBundleDescriptor) descriptor).getSunDescriptor().getSecurityRoleMapping();
SecurityRoleMapperFactory factory = SecurityRoleMapperFactoryMgr.getFactory();
//super.getDescriptor().getApplication().getRoleMapper().getName();
if (srmList == null) {
return;
}
for (int si = 0; si < srmList.length; si++) {
SecurityRoleMapping srm = srmList[si];
Role role = new Role(srm.getRoleName());
SecurityRoleMapper rm = factory.getRoleMapper(name);
if (rm != null) {
List<PrincipalNameDescriptor> principals = srm.getPrincipalNames();
for (int i = 0; i < principals.size(); i++) {