return new VerifierFactory() {
@Override
public <M> Verifier createVerifier(
DataModelDefinition<M> definition,
VerifyContext context) throws IOException {
final Verifier delegate = verifierFactory.createVerifier(definition, context);
return new Verifier() {
@Override
public List<Difference> verify(DataModelSource results) throws IOException {
DataModelSource filtered = sourceFilter.apply(results);
return delegate.verify(filtered);
}
@Override
public void close() throws IOException {
delegate.close();
}
};
}
@Override
public String toString() {