{
if (initialStateMarked())
{
Object parentSaved = super.saveState(facesContext);
Object stateHelperSaved = null;
StateHelper stateHelper = getStateHelper(false);
if (stateHelper != null)
{
stateHelperSaved = stateHelper.saveState(facesContext);
}
if (parentSaved == null && stateHelperSaved == null)
{
//No values
return null;
}
return new Object[]{parentSaved, stateHelperSaved};
}
else
{
Object[] values = new Object[2];
values[0] = super.saveState(facesContext);
StateHelper stateHelper = getStateHelper(false);
if (stateHelper != null)
{
values[1] = stateHelper.saveState(facesContext);
}
return values;
}
}