write("&amp;C");
<BUG>write(StringEscapeUtils.escapeHtml(printSettings.getHeaderCenter()));
</BUG>
}
<BUG>if (StringUtils.isNotBlank(printSettings.getHeaderRight()))
{</BUG>
write("&amp;R");
<BUG>write(StringEscapeUtils.escapeHtml(printSettings.getHeaderRight()));
</BUG>
}

write("&amp;C");
write(JRStringUtil.xmlEncode(printSettings.getHeaderCenter()));
}
if (printSettings.getHeaderRight() != null && !printSettings.getHeaderRight().trim().isEmpty())
{
write("&amp;R");
write(JRStringUtil.xmlEncode(printSettings.getHeaderRight()));
}
