CDI-based session support in cotrix-common