NXIO-207: move all domain stuff in DomainListener, run it before IoEnvironmentListener