public static void print(Component printRoot, String title, String header, String styleSheet, boolean preview) {
List<String> content = new ArrayList<String>();
if (header != null && !header.isEmpty()) {
content.add("$report_headers $" + header);
}
if (title != null && !title.isEmpty()) {
content.add("<div><div class='cwf-reporting-header-title'>" + StringEscapeUtils.escapeHtml(title)
+ "</div></div>");
}
content.add("#" + printRoot.getUuid());
ZKUtil.printToClient(content, StrUtil.toList(styleSheet, ","), preview);
}