String name = RequestUtil.getServletName(servlet);
// verify the number of service calls in this request
if (requestData.servletCallCounter >= maxCallCounter) {
throw new TooManyCallsException(name);
}
// replace the current servlet name in the request
Object oldValue = request.getAttribute(SLING_CURRENT_SERVLET_NAME);
request.setAttribute(SLING_CURRENT_SERVLET_NAME, name);