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 IMAManager) {
IMAManager imaOld = (IMAManager) data;
soup.setGlobalData(imaOld.toIMAManager2());
ByteArrayOutputStream bos = new ByteArrayOutputStream();
soup.write(bos);
instance.setExecutionState(bos.toByteArray());
__log.debug("Migrated outstanding requests for instance " + instance.getInstanceId());