Fix WFLY-336: Domain Mode