IStructuredModel model = null;
JSPTranslator translator = null;
try {
model = StructuredModelManager.getModelManager().getModelForRead(jspFile);
if(model instanceof IDOMModel) {
IDOMDocument doc = ((IDOMModel)model).getDocument();
ModelHandlerForJSP.ensureTranslationAdapterFactory(model);
JSPTranslationAdapter adapter = (JSPTranslationAdapter)doc.getAdapterFor(IJSPTranslation.class);
//don't want to persist a translator that has not already been requested
if(adapter != null && adapter.hasTranslation()) {
translator = adapter.getJSPTranslation().getTranslator();
}