when copying a plugin the state is transferred by serializing XML and setting state from XML. This state includes the unique ID. This ID needs to be identical at first in order to load the state from <session-dir>/plugins/<ID>/*