return new InfinispanImmutableSession(id, metaData, attributes, this.context);
}
@Override
public CoarseSessionEntry<L> createValue(String id) {
CoarseSessionCacheEntry<L> entry = new CoarseSessionCacheEntry<>(new SimpleSessionMetaData());
CoarseSessionCacheEntry<L> existingEntry = this.sessionCache.getAdvancedCache().withFlags(Flag.FORCE_SYNCHRONOUS).putIfAbsent(id, entry);
if (existingEntry != null) {
MarshalledValue<Map<String, Object>, MarshallingContext> value = this.attributesCache.get(new SessionAttributesCacheKey(id));
return new CoarseSessionEntry<>(existingEntry, value);
}