def _add_rel(self, key, rel, thing, wrap):
        self.o.setdefault(key, {})

        if wrap:
            self.o[key].setdefault(rel, [])

        if rel not in self.o[key]:
            self.o[key][rel] = thing
            return

        existing = self.o[key].get(rel)
        if isinstance(existing, list):
            existing.append(thing)
            return

        self.o[key][rel] = [existing, thing]
Called when the command has executed the process
dataset/ETHPy150Open wharris/dougrain/dougrain/builder.py/Builder._add_rel--crossover with--dataset/ETHPy150Open sporsh/carnifex/carnifex/ssh/process.py/SSHProcess.processOpen