[NXCM-4895] Allow subclasses to override session creation

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>