public int createDBSanityChecksFor(SchemaChange schemaChange, File checksFile) {
try {
OutputStream out = new BufferedOutputStream(new FileOutputStream(checksFile));
SimpleXMLWriter writer = new SimpleXMLWriter(out, Encodings.UTF_8, true);
writer.startDocument();
writer.startElement("dbsanity");
int checkCount = process(schemaChange, writer);
writer.endElement("dbsanity");
writer.endDocument();
writer.close();