writeTemplateResourceToHttpResponse(httpContext.getResponse(), templateResource);
break;
}
return true;
} else {
throw new HttpException(HttpStatusCode.STATUS_404_NOT_FOUND, "Resource not found!");
}
} else {
throw new HttpException(HttpStatusCode.STATUS_405_METHOD_NOT_ALLOWED, "Method not allowed");
}
}