String clusterType = event.getAtmosphereConfig().getInitParameter(CLUSTER);
if (!filterAdded.getAndSet(true) && clusterType != null){
if (clusterType.equals("jgroups")){
event.getAtmosphereConfig().getServletContext().log("JGroupsFilter enabled");
bc.getBroadcasterConfig().addFilter(
new JGroupsFilter(bc, event.getAtmosphereConfig().getWebServerName()));
}
}
//Simple Broadcast
bc.getBroadcasterConfig().addFilter(new XSSHtmlFilter());