public void convert(
     Document document, Element webApp, ServerDefaults from, Properties catalinaProperties) {
   final List<Element> servlets = getChildElements(webApp, "servlet");
   for (int i = 0; i < servlets.size(); i++) {
     Element servlet = (Element) servlets.get(i);
     final String servletName = getChildElements(servlet, "servlet-name").get(0).getTextContent();
     if ("jsp".equals(servletName)) {
       jspDefaultsConverter.convert(document, servlet, from.getJspDefaults(), catalinaProperties);
     } else if ("default".equals(servletName)) {
       staticDefaultsConverter.convert(
           document, servlet, from.getStaticDefaults(), catalinaProperties);
     }
   }
 }
 public ServerDefaults convert(Element webApp, Properties catalinaProperties) {
   final ServerDefaults serverDefaults = new ServerDefaults();
   final List<Element> servlets = getChildElements(webApp, "servlet");
   for (int i = 0; i < servlets.size(); i++) {
     Element servlet = (Element) servlets.get(i);
     final String servletName = getChildElements(servlet, "servlet-name").get(0).getTextContent();
     if ("jsp".equals(servletName)) {
       serverDefaults.setJspDefaults(jspDefaultsConverter.convert(servlet, catalinaProperties));
     } else if ("default".equals(servletName)) {
       serverDefaults.setStaticDefaults(
           staticDefaultsConverter.convert(servlet, catalinaProperties));
     }
   }
   return serverDefaults;
 }