addDescriptions(servletE, servletDefinition.getDescriptions());
addTextElement(servletE, "servlet-class", servletDefinition.getServletClass());
addTextElement(servletE, "jsp-file", servletDefinition.getJspFile());
addParameters(servletE, "init-param", (ParameterSetImpl)servletDefinition.getInitParameterSet());
addTextElement(servletE, "load-on-startup", servletDefinition.getLoadOnStartup());
RunAsImpl runAs = servletDefinition.getRunAs();
if (runAs != null) {
Element runAsE = doc.createElement("run-as");
addDescriptions(runAsE, runAs.getDescritpions());
addTextElement(runAsE, "role-name", runAs.getRoleName());
servletE.appendChild(runAsE);
}
SecurityRoleRefSetImpl securityRoleRefs = (SecurityRoleRefSetImpl)servletDefinition.getSecurityRoleRefs();
if (securityRoleRefs != null) {
for (Iterator iter2 = securityRoleRefs.iterator(); iter2.hasNext();) {