private ObjectId writeBytes(final byte[] bytes) throws IOException { final ObjectWriter objectWriter = new ObjectWriter(repository); final ObjectId writeBlob = objectWriter.writeBlob(bytes); return writeBlob; }