4.5.8. startBatch

The startBatch method indicates the start of applying this rule to one or more nodes. This method is called by the framework just before one or more invocations of the apply method (see Section 4.5.10, “apply”). An invocation of this method indicates the start of a user action, namely the start of a consistency check or the start of saving a node.
This method allows to prepare or cache resources that can be reused in subsequent invocations of the apply method. Therefore, this method is only useful, if a consistency check is started on more than one node.
In our example, we can just provide an empty stub, because we do not need to cache anything:
public void startBatch(HTMLRuleContext ctx)