Integer port = config.getPort();
// TODO: can not set contextRoot in config, change to prefixContextRoot
String contextRoot = null; //protocolConfiguration.getContextRoot();
Servlet servlet = context.getServletByName(ServletMethodExecutor.ARQUILLIAN_SERVLET_NAME);
if(servlet != null)
{
// use the context where the Arquillian servlet is found
if(address == null)
{
address = context.getHost();
}
if(port == null)
{
port = context.getPort();
}
contextRoot = servlet.getContextRoot();
}
else
{
throw new IllegalArgumentException(
ServletMethodExecutor.ARQUILLIAN_SERVLET_NAME + " not found. " +