contentNode.setProperty("jcr:lastModified", System.currentTimeMillis());
contentNode.setProperty("jcr:data", new ByteArrayInputStream(buf, 0, size()));
contentNode.setProperty("jcr:mimeType", mimeType);
session.save();
this.repositoryOutputProvider.handleChangeEvent(fileName);
} catch (final RepositoryException re) {
throw (IOException)new IOException("Cannot write file " + fileName + ", reason: " + re.toString()).initCause(re);
} finally {
if ( session != null ) {