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);
Map<String, Object> attrs = includeAttributes ? getSessionAttributes(realId, distributedCacheData) : null;
return new IncomingDistributableSessionDataImpl(version, timestamp, metadata, attrs);
}