Map<Object, Object> distributedCacheData,
boolean includeAttributes)
{
Integer version = (Integer) distributedCacheData.get(VERSION_KEY);
Long timestamp = (Long) distributedCacheData.get(TIMESTAMP_KEY);
DistributableSessionMetadata metadata = (DistributableSessionMetadata) distributedCacheData.get(METADATA_KEY);
IncomingDistributableSessionData result = null;
if (includeAttributes)
{
Map<String, Object> attrs = getSessionAttributes(realId, distributedCacheData);
result = new IncomingDistributableSessionDataImpl(version, timestamp, metadata, attrs);