String matchDocumentPath = match.getResource().getFullPath().toString();
SearchDocument searchDoc = JSPSearchSupport.getInstance().getSearchDocument(matchDocumentPath);
if (searchDoc != null && searchDoc instanceof JavaSearchDocumentDelegate) {
JavaSearchDocumentDelegate javaSearchDoc = (JavaSearchDocumentDelegate)searchDoc;
int jspStart = javaSearchDoc.getJspOffset(match.getOffset());
int jspEnd = javaSearchDoc.getJspOffset(match.getOffset() + match.getLength());
JSPTranslation trans = javaSearchDoc.getJspTranslation();
String jspText = trans.getJspText();
String javaText = javaSearchDoc.getJavaText();
if (DEBUG)
displayDebugInfo(match, jspStart, jspEnd, jspText, javaText);
if (jspStart > -1 && jspEnd > -1)
addSearchMatch(new Document(trans.getJspText()), javaSearchDoc.getFile(), jspStart, jspEnd, jspText);
}
}