public boolean processHttpContext(IHttpContext httpContext) {
if (isGetOrHeadOrPostMethod(httpContext.getRequest())) {
if (resourceExists(httpContext.getRequest().getUri().getPath())) {
HttpDynamicTemplateResource templateResource = getTemplateResource(httpContext.getRequest().getUri().getPath());
IWebTemplate template = fileInstantiator.instantiate(templateResource);
template.setContext(httpContext);
template.load();
switch (httpContext.getRequest().getMethod()) {
case GET:
case HEAD:
template.get();
break;
case POST:
template.post();
break;
}
if (template instanceof WebFileTemplate) {
switch (httpContext.getRequest().getMethod()) {