private GitRepoResponse createResponse(List<Message> messages) {
        Objects.requireNonNull(messages);
        var buf = new StringBuilder("Success:\n");
        for (var m : messages) {
            buf.append(m);
            buf.append("\n");
        }

        return new GitRepoResponse(true, buf.toString());
    }
Converts the response from the exportDoc method into something we can
send back to the UI and show to the user.
@param messages The collection of messages for the export process.
@return the response for the UI. Never returns null.
stroom-gitrepo/stroom-gitrepo-impl/src/main/java/stroom/gitrepo/impl/GitRepoResourceImpl.java