Copied the ui.save(String path, String content) to ui.append(String path...

..., String content) and use target.appendContents()