final WebScriptResponse response) {
try {
final Match match = uriIndex.findWebScript(httpMethod.name(), uri);
assertNotNull(String.format("Could not find annotation-based WebScript for method '%s' and URI '%s'.",
httpMethod, uri), match);
final WebScript webScript = match.getWebScript();
webScript.execute(request.setServiceMatch(match), response);
} catch (final IOException e) {
throw new RuntimeException(e);
}
}