private void incrementDepth() {
        final int maxDepth = elasticConfigProvider.get().getIndexingConfig().getMaxNestedElementDepth();

        currentDepth++;

        if (currentDepth > maxDepth) {
            fatalError("Maximum nested element depth of " + maxDepth + " exceeded", new RuntimeException());
        }
    }
Sets the locator to use when reporting errors.

@param locator The locator to use.
stroom-search/stroom-search-elastic/src/main/java/stroom/search/elastic/indexing/ElasticIndexingFilter.java