It returns the root MRR for the deployment, not the child/grandchild you added in the extension. You have to navigate. See https://github.com/wildfly/wildfly/blob/master/connector/src/main/java/org/jboss/as/connector/deployers/ds/processors/DsXmlDeploymentInstallProcessor.java#L356