<BUG>writer.writeAttribute(Attribute.PATH.name, path.toString());if(type != ModificationType.REMOVE) {</BUG><CONTEXT>final StringBuilder path = new StringBuilder();for(final String p : item.getPath()) {path.append(p).append(PATH_DELIMITER);}path.append(item.getName());<extra_id_0>writer.writeAttribute(Attribute.HASH.name, bytesToHexString(item.getContentHash()));}if(type != ModificationType.ADD) {</CONTEXT>
if (item.isDirectory()) {writer.writeAttribute(Attribute.DIRECTORY.name, "true");if(type != ModificationType.REMOVE) {