public static Map<String, String> getServletInitParams( Document webXml, String servletName )
    {
        return getInitParams( "servlet", webXml, servletName );
    }
Retrieves a map of init param/values for a particular servlet from a web.xml document.

For filter 'message' of this web.xml document, returns a map with two entries: foo-&gt; bar, test-&gt;value.
&lt;servlet&gt;
  &lt;servlet-name&gt;sessioncreate&lt;/servlet-name&gt;
  &lt;servlet-class&gt;SessionCreateServlet&lt;/servlet-class&gt;
  &lt;init-param&gt;
    &lt;param-name&gt;foo&lt;/param-name&gt;
    &lt;param-value&gt;bar&lt;/param-value&gt;
  &lt;/init-param&gt;
  &lt;init-param&gt;
    &lt;param-name&gt;test&lt;/param-name&gt;
    &lt;param-value&gt;value&lt;/param-value&gt;
  &lt;/init-param&gt;
&lt;/servlet&gt;

Parameters with no or empty name are ignored. When multiple parameters have the same name, only one of them is
returned.

@param webXml web.xml document, parsed as XML (cannot be null)
@param servletName The name of the servlet (cannot be null or empty).
@return A map (possibly empty, but never null).
xmppserver/src/main/java/org/jivesoftware/util/WebXmlUtils.java