}
}
if (hasOverlays) {
StringBuilder overlay = new StringBuilder();
CmsTool cms = Application.Static.getInstance(CmsTool.class);
String defaultCss = cms.getDefaultTextOverlayCss();
String id = "i" + UUID.randomUUID().toString().replace("-", "");
overlay.append("<style type=\"text/css\">");
if (!ObjectUtils.isBlank(defaultCss)) {
overlay.append("#");
overlay.append(id);
overlay.append("{display:inline-block;overflow:hidden;position:relative;");
overlay.append(defaultCss);
overlay.append("}");
}
for (CmsTool.CssClassGroup group : cms.getTextCssClassGroups()) {
String groupName = group.getInternalName();
for (CmsTool.CssClass cssClass : group.getCssClasses()) {
overlay.append("#");
overlay.append(id);
overlay.append(" .cms-");