Cluster clusterAnnotation = ctx.getActionAnnotation(Cluster.class);
if (clusterAnnotation != null) {
Class<? extends ClusterBroadcastFilter>[] clusterFilters = clusterAnnotation.value();
for (Class<? extends ClusterBroadcastFilter> c : clusterFilters) {
try {
ClusterBroadcastFilter cbf = c.newInstance();
InjectorProvider.getInjector().inject(cbf);
cbf.setUri(clusterAnnotation.name());
clusterBroadcastFilters.add(cbf);
} catch (Throwable t) {
logger.warn("Invalid ClusterBroadcastFilter", t);
}
}