try {
boolean mayIndex = indexStore.aboutToIndexHtml(context, htmlElement);
if (!mayIndex) {
return;
}
AngularHtmlIndexContributor contributor = new AngularHtmlIndexContributor(indexStore);
unit.accept(contributor);
indexStore.doneIndex();
} catch (Throwable exception) {
AnalysisEngine.getInstance().getLogger().logError(
"Could not index " + unit.getElement().getLocation(),