IndexedDocument<N, E, T> doc,
Nindo m, DocumentSchema schema) {
Preconditions.checkNotNull(schema, "Schema constraints required, if not, " +
"use DocumentSchema.NO_SCHEMA_CONSTRAINTS");
final NindoAutomaton<N, E, T> a = new NindoAutomaton<N, E, T>(schema, doc);
final ViolationCollector v = new ViolationCollector();
try {
m.apply(new NindoCursor() {
@Override
public void begin() {