private MigratableProcess getProcess(long id) {
        Iterator<MigratableProcess> it = processes.iterator();
        while (it.hasNext()) {
            MigratableProcess process = it.next();
            if (process.getId() == id)
                return process;
        }
        return null;
    }