if (_persistedValues.isEmpty()) return;
// Otherwise, time to update _clientData from _persistedValues
Base64ObjectOutputStream os = null;
try
{
os = new Base64ObjectOutputStream();
os.writeInt(_persistedValues.size());
for (Map.Entry<Key, Object> e : _persistedValues.entrySet())
{
os.writeObject(e.getKey());
os.writeObject(e.getValue());
}
}
catch (Exception ex)
{
throw new RuntimeException(ex.getMessage(), ex);
}
finally
{
TapestryInternalUtils.close(os);
}
_clientData = os.toBase64();
}