Object[] values = new Object[2 * size];
int i = 0;
for(Map.Entry<PropertyKey, Object> entry : map.entrySet())
{
PropertyKey key = entry.getKey();
if (key.isTransient())
{
// TRINIDAD-1956: due to the view root caching functionality, the transient properties
// may be retained too long. By removing the value here we can ensure that the next
// request will not have the transient values.
entry.setValue(null);
continue;
}
Object value = entry.getValue();
values[i] = saveKey(key);
if (_LOG.isFinest())
{
_LOG.finest("SAVE {" + key + "=" + value + "}");
}
Object saveValue;
if (useStateHolder)
saveValue = saveStateHolder(context, value);
else
saveValue = key.saveValue(context, value);
// aggressively check the serializability of the value
if (_checkPropertyStateSerialization())
{
try