{
String path = request.getRequestURI().replaceFirst(prefix, "");
int index = path.indexOf('/', 1);
if (index != -1) path = path.substring(0, index);
AbstractResource provider = providers.get(path);
if (provider != null)
{
provider.getResource(request, response);
}
else
{
response.sendError(HttpServletResponse.SC_NOT_FOUND);
}