please make a comment here that following code will not work for session scope plots with the reference to new Jira task