Phase 3 of DTGOV-127: domain mode

https://issues.jboss.org/browse/DTGOV-127