String source = inputStreamAsString(stream);
stream.close();
Content sw = persistenceProvider.load(Content.class, revision.getSourceCodeWrapper().getId());
sw.setSource(source);
persistenceProvider.update(sw);
// now we can release the revision to the garbage collector,
// since it was made persistent.