public ImmutableSession createImmutableSession(String id, CoarseSessionEntry<L> entry) {
CoarseSessionCacheEntry<L> cacheEntry = entry.getCacheEntry();
ImmutableSessionMetaData metaData = cacheEntry.getMetaData();
MarshalledValue<Map<String, Object>, MarshallingContext> value = entry.getAttributes();
ImmutableSessionAttributes attributes = new CoarseImmutableSessionAttributes(value, this.marshaller);
return new InfinispanImmutableSession(id, metaData, attributes, this.context);
}