newFilter.setFilterClass(cls.getName());
for (WebInitParam webInitParam : webFilter.initParams()) {
newFilter.getInitParam().add(newParamValue(webInitParam));
}
if (!webFilter.smallIcon().isEmpty() || !webFilter.largeIcon().isEmpty()) {
Icon icon = new Icon();
if (!webFilter.smallIcon().isEmpty()) {
icon.setSmallIcon(webFilter.smallIcon());
}
if (!webFilter.largeIcon().isEmpty()) {
icon.setLargeIcon(webFilter.largeIcon());
}
newFilter.getIconMap().put(null, icon);
}
FilterMergeHandler.addFilter(newFilter, mergeContext);
}