_removeTransientComponents(root);
Object structure = (dontSave || !_needStructure(context))
? null
: new Structure(root);
Object state = dontSave ? null : root.processSaveState(context);
if (_saveAsToken(context))
{
String token;
ExternalContext extContext = context.getExternalContext();