public void regionClose(final SnapshotRegionManifest.Builder region) throws IOException {
SnapshotRegionManifest manifest = region.build();
FSDataOutputStream stream = fs.create(getRegionManifestPath(snapshotDir, manifest));
try {
manifest.writeTo(stream);
} finally {
stream.close();
}
}