// security-role-mapping
SecurityRoleMapping[] roleMappings = sunWebApp.getSecurityRoleMapping();
if (roleMappings!=null && roleMappings.length>0) {
SecurityRoleMappingNode srmn = new SecurityRoleMappingNode();
for (int i=0;i<roleMappings.length;i++) {
srmn.writeDescriptor(web, RuntimeTagNames.SECURITY_ROLE_MAPPING, roleMappings[i]);
}
}
// servlet
Set servlets = bundleDescriptor.getServletDescriptors();