function reinitMatlabRef()
% reinitMatlabRef
%
% This method reinitializes the reference to the MATLAB session, allowing the
% MCR context to be switched without triggering the error generated by
% initMatlabRef().
%
% This method should only be called by MATLAB Production Server when switching
% between MCR/CTF contexts. MPS must guarantee that the prior MCR/CTF context
% will no longer reference PCT.
%
% PCT_Java_Transition_TODO (g2288690): Remove this when PLR has transitioned
%   to not use the MatlabRefStore

%   Copyright 2020 The MathWorks, Inc.

import com.mathworks.toolbox.distcomp.util.MatlabRefStore;

MatlabRefStore.reinitMatlabRef();
