//Create the empty host-environment resource
context.createResource(hostAddress.append(PathElement.pathElement(CORE_SERVICE, HOST_ENVIRONMENT)));
// Wire in the platform mbean resources. We're bypassing the context.createResource API here because
// we want to use our own resource type. But it's ok as the createResource calls above have taken the lock
rootResource.registerChild(PlatformMBeanConstants.ROOT_PATH, new RootPlatformMBeanResource());
// Wire in the ignored-resources resource
Resource.ResourceEntry ignoredRoot = ignoredDomainResourceRegistry.getRootResource();
rootResource.registerChild(ignoredRoot.getPathElement(), ignoredRoot);
context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_HANDLER);