throws ServletException, IOException
{
String serviceName = getService(request);
if (serviceName == null) serviceName = "";
ServiceRegistry reg = getServiceRegistry();
response.setHeader("Content-Type", "UTF-8");
try
{
requests.set(request);
responses.set(response);
boolean hasService = reg.hasService(serviceName);
if (serviceName.length() == 0 || !hasService)
{
if (!hasService)
{
response.setStatus(404);