For every type of resource, the creation or delete will take "domain" as the target, except admin-object-resource.
In console, we rely on this to work properly.
- create a resource with "domain" as target
- create all resource-ref appropriately. if DAS only, create the resource-ref for 'server', otherwise, whatever the user choose. And user may select to not have any target specified.
However, error thrown if we do this with 'admin-object-resource'. This is a long time bug, and console work around it using "server-config" as its target instead of 'domain'. This doesn't make sense, but kind of work. There thus a <resource-ref> under server-config. Console code want to remove this workaround and keep domain.xml correct.