public boolean shouldEncodeFeature(FacesContext context) {
        return context.getExternalContext().getRequestParameterMap().containsKey(getClientId(context) + "_encodeFeature");
    }
Recalculates filteredValue after adding, updating or removing TreeNodes to/from a filtered TreeTable.
primefaces/src/main/java/org/primefaces/component/treetable/TreeTable.java