IEngineServiceView engine,
IRequestCycle cycle,
ResponseOutputStream output)
throws ServletException, IOException
{try { __CLOVER_82_0.M[3036]++;
__CLOVER_82_0.S[12524]++;IExternalPage page = null;
__CLOVER_82_0.S[12525]++;String[] context = getServiceContext(cycle.getRequestContext());
__CLOVER_82_0.S[12526]++;if ((((context == null || context.length != 1) && (++__CLOVER_82_0.CT[2146] != 0)) || (++__CLOVER_82_0.CF[2146] == 0))){
__CLOVER_82_0.S[12527]++;throw new ApplicationRuntimeException(
Tapestry.format("service-single-context-parameter", Tapestry.EXTERNAL_SERVICE));}
__CLOVER_82_0.S[12528]++;String pageName = context[0];
__CLOVER_82_0.S[12529]++;try
{
__CLOVER_82_0.S[12530]++;page = (IExternalPage) cycle.getPage(pageName);
}
catch (ClassCastException ex)
{
__CLOVER_82_0.S[12531]++;throw new ApplicationRuntimeException(
Tapestry.format("ExternalService.page-not-compatible", pageName),
ex);
}
__CLOVER_82_0.S[12532]++;Object[] parameters = getParameters(cycle);
__CLOVER_82_0.S[12533]++;cycle.setServiceParameters(parameters);
__CLOVER_82_0.S[12534]++;cycle.activate(page);
__CLOVER_82_0.S[12535]++;page.activateExternalPage(parameters, cycle);
// Render the response.
__CLOVER_82_0.S[12536]++;_responseRenderer.renderResponse(cycle, output);
} finally { }}