/*
* using a real document allows us to pull out text in the
* translator for dealing with TEI variables
*/
try {
IModelHandler handler = ModelHandlerRegistry.getInstance().getHandlerFor(f, false);
if (handler == null)
handler = ModelHandlerRegistry.getInstance().getHandlerForContentTypeId(ContentTypeIdForJSP.ContentTypeID_JSPFRAGMENT);
document = (IStructuredDocument) handler.getDocumentLoader().createNewStructuredDocument();
contents = FileContentCache.getInstance().getContents(f.getFullPath());
}
catch (CoreException e) {
Logger.logException(e);
}