ExecutionQueueImpl soup = new ExecutionQueueImpl(this.getClass().getClassLoader());
soup.setReplacementMap(process.getReplacementMap(processDao.getProcessId()));
soup.read(new ByteArrayInputStream(instance.getExecutionState()));
Object data = soup.getGlobalData();
if (data instanceof OutstandingRequestManager) {
OutstandingRequestManager orm = (OutstandingRequestManager) data;
IMAManager imaManager = new IMAManager();
imaManager.migrateRids(orm.getRids());
soup.setGlobalData(imaManager);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
soup.write(bos);
instance.setExecutionState(bos.toByteArray());