allow event listeners to be registered on ksession when persistence is enabled