final ModelNode model = new ModelNode();
final ModelController controller = createController(ProcessType.HOST_CONTROLLER, model, new Setup() {
public void setup(Resource resource, ManagementResourceRegistration root) {
final Resource host = Resource.Factory.create();
resource.registerChild(PathElement.pathElement(HOST, "master"), host);
// TODO maybe make creating of empty nodes part of the MNR description
host.registerChild(PathElement.pathElement(ModelDescriptionConstants.CORE_SERVICE, ModelDescriptionConstants.MANAGEMENT), Resource.Factory.create());
host.registerChild(PathElement.pathElement(ModelDescriptionConstants.CORE_SERVICE, ModelDescriptionConstants.SERVICE_CONTAINER), Resource.Factory.create());
final LocalHostControllerInfoImpl hostControllerInfo = new LocalHostControllerInfoImpl(new ControlledProcessState(false), "master");
// Add of the host itself
ManagementResourceRegistration hostRegistration = root.registerSubModel(PathElement.pathElement(HOST), HostDescriptionProviders.HOST_ROOT_PROVIDER);