private boolean isMissingLineEndAsLastChar(final byte[] bytes) {
        if (bytes.length < LINE_END_CHAR_BYTES.length) {
            return false;
        } else {
            byte[] lastChar = Arrays.copyOfRange(bytes, bytes.length - LINE_END_CHAR_BYTES.length, bytes.length);
            return !Arrays.equals(LINE_END_CHAR_BYTES, lastChar);
        }
    }
Prunes the node path for GitRepo exports. Removes everything in the rootPath
from the nodePath if the rootPath matches the start of the nodePath.
@param rootPath Can be null, in which case this function just returns nodePath.
                Otherwise, the list of items to prune from the start of nodePath.
@param nodePath The node path to prune.
@return The pruned nodePath.
stroom-importexport/stroom-importexport-impl/src/main/java/stroom/importexport/impl/ImportExportSerializerImpl.java