throw new IllegalArgumentException("No such application found: " + name);
if (this.server.getConnectors().size() == 0)
throw new IllegalStateException("No connectors have been defined for the server");
WebServerConnector connector = this.server.getConnectors().get(0);
if (connector instanceof WebServerConnectorHTTP) {
WebServerConnectorHTTP http = (WebServerConnectorHTTP) connector;
try {
return new URL("http", http.getHostname(), http.getPort(), wadc.getApplication().getContextPath());
} catch (MalformedURLException e) {