private GenericServlet getServlet(String pathInfo) {
        pathInfo = pathInfo.substring(1).toLowerCase();
        final GenericServlet servlet = getWildcardMappedObject(servlets, pathInfo);
        Log.trace("Found servlet {} for path {}", servlet != null ? servlet.getServletName() : "(none)", pathInfo);
        return servlet;
    }
Returns the correct servlet with mapping checks.

@param pathInfo the pathinfo to map to the servlet.
@return the mapped servlet, or null if no servlet was found.
xmppserver/src/main/java/org/jivesoftware/openfire/container/PluginServlet.java