Make domain mode work in core distribution
Make domain mode work in core distribution

was: ef644aa33e8b311e572e209de37e9098dd608a8b

darranl/wildfly-core,bstansberry/wildfly-core,ivassile/wildfly-core,jfdenise/wildfly-core,soul2zimate/wildfly-core,bstansberry/wildfly-core,jfdenise/wildfly-core,jamezp/wildfly-core,darranl/wildfly-core,aloubyansky/wildfly-core,luck3y/wildfly-core,jfdenise/wildfly-core,aloubyansky/wildfly-core,luck3y/wildfly-core,JiriOndrusek/wildfly-core,JiriOndrusek/wildfly-core,ivassile/wildfly-core,soul2zimate/wildfly-core,JiriOndrusek/wildfly-core,jamezp/wildfly-core,jamezp/wildfly-core,yersan/wildfly-core,luck3y/wildfly-core,bstansberry/wildfly-core,ivassile/wildfly-core,yersan/wildfly-core,yersan/wildfly-core,aloubyansky/wildfly-core,soul2zimate/wildfly-core,darranl/wildfly-core