ValidatorRegistry validatorRegistry = new BaseValidatorRegistry();
SwitchYardCamelContextImpl camelContext = new SwitchYardCamelContextImpl();
CamelExchangeBus bus = new CamelExchangeBus(camelContext);
ServiceDomainSecurity serviceDomainSecurity = getServiceDomainSecurity(switchyardConfig);
DomainImpl domain = new DomainImpl(
domainName, _registry, bus, transformerRegistry, validatorRegistry, _eventManager, serviceDomainSecurity);
camelContext.setServiceDomain(domain);