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
{
InternalUtils.close(os);
}
clientData = os.toBase64();
}