newServlet.addNewAsyncSupported().setBooleanValue(webServlet.asyncSupported());
if (!webServlet.description().isEmpty()) {
newServlet.addNewDescription().setStringValue(webServlet.description());
}
if (webServlet.loadOnStartup() != -1) {
newServlet.setLoadOnStartup(webServlet.loadOnStartup());
}
for (WebInitParam webInitParam : webServlet.initParams()) {
ParamValueType paramValue = newServlet.addNewInitParam();
paramValue.addNewDescription().setStringValue(webInitParam.description());
paramValue.addNewParamName().setStringValue(webInitParam.name());