text: public byte[] build() {ByteArrayOutputStream os = new ByteArrayOutputStream();try (OutputStreamWriter w = new OutputStreamWriter(os,UTF_8)) {w.write("object "); getObjectId().copyTo(w);w.write('\n');w.write("type "); w.write(Constants.typeString(getObjectType()));w.write("\n"); w.write("tag "); w.write(getTag());w.write("\n"); if (getTagger() != null) {w.write("tagger "); w.write(getTagger().toExternalString());w.write('\n');}w.write('\n');if (getMessage() != null)w.write(getMessage());} catch (IOException err) {throw new RuntimeException(err);}return os.toByteArray();}