throw new MethodNotSupportedException(method + " method not supported");
}
final WebContext webcontext = new WebContext(request, response, context);
final String target = request.getRequestLine().getUri();
final WebUri uri = new WebUri(target);
final String path = uri.getFilePath(); // "rest/service/method"
final Map<String, String> query = uri.getQueryParamsAsStringMap();
//-- parse path --//
final String[] pathtokens = CollectionUtils.delimitedListToStringArray(path, "/");
if (pathtokens.length > 2) {
final String serviceName = pathtokens[pathtokens.length - 2];
final String methodName = pathtokens[pathtokens.length - 1];