SunWebApp sunWebApp = bundleDescriptor.getSunDescriptor();
//security-role-assignment*
WLSecurityRoleAssignment[] wlRoleAssignments = sunWebApp.getWLSecurityRoleAssignment();
if (wlRoleAssignments != null && wlRoleAssignments.length > 0) {
WLSecurityRoleAssignmentNode sran = new WLSecurityRoleAssignmentNode();
for (int i = 0; i < wlRoleAssignments.length; i++) {
sran.writeDescriptor(root, RuntimeTagNames.WL_SECURITY_ROLE_ASSIGNMENT, wlRoleAssignments[i]);
}
}
//resource-description*
ResourceRef[] resourceRefs = sunWebApp.getResourceRef();