if (roundEnv.processingOver()) {
// Read an existing resource
FileObject foo = processingContext.getResource(location, "", "foo.txt");
assertNotNull(foo);
String s = Tools.read(foo.openInputStream());
assertEquals("foo_value", s);
// Now we overwrite the resource
foo = processingContext.createResource(location, "", "foo.txt");
OutputStream out = foo.openOutputStream();