for (int i=0; i<removableFacetNames.length; i++)
{
if (facets.get(removableFacetNames[i]) != null)
{
facets.remove(removableFacetNames[i]);
ComponentChange rfa = new RemoveFacetComponentChange(removableFacetNames[i]);
FacesContext fc = FacesContext.getCurrentInstance();
ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
apm.addComponentChange(fc, uic, rfa);
}
}