* Returns the matching web-app for a URL.
*/
public WebApp getWebApp(String hostName, int port, String url)
{
try {
HostContainer hostContainer = _hostContainer;
if (hostContainer == null)
return null;
Host host = hostContainer.getHost(hostName, port);
if (host == null)
return null;
return host.getWebAppContainer().findWebAppByURI(url);