}
this.serviceSpace = serviceSpace;
}
public void registerNodeService(NodeService nodeService) {
ServiceRegistry serviceRegistry = serviceSpace.getServiceRegistry();
try {
serviceRegistry.register(NodeService.SERVICE_NAME, nodeService);
} catch (ServiceAlreadyRegisteredException e) {
throw new IllegalStateException("NodeService already registered.", e);
}
}