servletInfo.loadOnStartup = servlet.getLoadOnStartup();
if (servlet.getRunAs() != null) {
servletInfo.runAsRole = servlet.getRunAs().getRoleName().trim();
}
if (servlet.getMultipartConfig() != null) {
MultipartConfig multipartConfig = servlet.getMultipartConfig();
MultipartConfigInfo multipartConfigInfo = new MultipartConfigInfo();
multipartConfigInfo.location = multipartConfig.getLocation();
multipartConfigInfo.maxFileSize = multipartConfig.getMaxFileSize();
multipartConfigInfo.maxRequestSize = multipartConfig.getMaxRequestSize();
multipartConfigInfo.fileSizeThreshold = multipartConfig.getFileSizeThreshold();
servletInfo.multipartConfigInfo = multipartConfigInfo;
}
addParams(servlet.getInitParam(), servletInfo.initParams);
for (SecurityRoleRef securityRoleRef : servlet.getSecurityRoleRef()) {
SecurityRoleRefInfo securityRoleRefInfo = new SecurityRoleRefInfo();