if (fileName.endsWith(VHTML)) {
// retrieve raw template data
String template = TextReader.read(file);
// notify context event
final OnBeforeCreateContent event = new OnBeforeCreateContent(this);
event.setWebContext(webcontext);
super.doEvent(event);
// resolve teplate
template = WebTemplatingFacade.getInstance().evalTemplate(
file.getName(),
template,
event.getTemplateContextData());
// write header buffer
webcontext.getResponse().writeHeaderBuffer();
return new NStringEntity(template, UTF8);