public function payload(array $input): PayloadInterface
    {
        $domain = $this->container->get($this->id);

        if ($domain instanceof DomainInterface) {

            return $domain->payload($input);

        }

        throw new ContainedDomainTypeException($this->id, $domain);
    }