The finishBatch method indicates the end of applying the rule to one or more nodes. This method is called by the framework just after one or more subsequent invocations of the apply method. For each invocation of startBatch there is exactly one subsequent invocation of finishBatch. For example, this method allows to release resources that have been cached in previous invocations of the apply method. This method could also be used to write a summary report.
In our example we just implement an empty stub:
public void finishBatch(HTMLRuleContext ctx)