%@ page import="com.appiancorp.common.config.ApplicationContextHolder"%>
<%@ page import="com.appiancorp.suite.cfg.CustomBrandingConfiguration"%>
<%
CustomBrandingConfiguration brandingConfiguration = ApplicationContextHolder.getBean(CustomBrandingConfiguration.class);
String bannerMessage = brandingConfiguration.getBannerMessage();
boolean hasSiteWideBanner = bannerMessage != null && !bannerMessage.isEmpty();
pageContext.setAttribute("hasSiteWideBanner", hasSiteWideBanner);
pageContext.setAttribute("bannerMessage", bannerMessage);
pageContext.setAttribute("bannerColor", brandingConfiguration.getBannerColor());
pageContext.setAttribute("bannerTextColor", brandingConfiguration.getBannerTextColor());
%>