Initialize selected collections of StatefulPersistenceContext lazily

Description

Most collections in StatefulPersistenceContext are likely going to be needed, but some are used only in specific use cases; allocating them all eagerly for each Session is a waste of memory.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure