// this._statesMap.put(getBaseClientId(faces), this._currentState);
// this._modelsMap.put(getBaseClientId(faces), this._currentModel);
for (Iterator<Entry<String, DataComponentState>> iter = this._statesMap.entrySet().iterator(); iter
.hasNext();) {
Entry<String, DataComponentState> stateEntry = iter.next();
DataComponentState dataComponentState = stateEntry.getValue();
String stateKey = stateEntry.getKey();
if (encodedIds.isEmpty() || encodedIds.contains(stateKey)) {
PerIdState idState = new PerIdState();
// Save component state , depended if implemented interfaces.
if (null == dataComponentState) {
idState.componentState = null;
} else {
if (dataComponentState instanceof Serializable) {
idState.componentState = dataComponentState;
} else if (dataComponentState instanceof StateHolder) {
idState.componentState = ((StateHolder) dataComponentState)
.saveState(faces);
idState.stateInHolder = true;
}
ExtendedDataModel extendedDataModel = (ExtendedDataModel) this._modelsMap
.get(stateKey);
if (null != extendedDataModel) {
idState.model = extendedDataModel
.getSerializableModel(dataComponentState
.getRange());
}
}
if (null != idState.model || null != idState.componentState) {