This code should use the same code as as `processSessionParameterChange`