Allow to obtain the related session id when one exists
Allow to customize the created PluginContext