public static String getBaseEndpointUrl(final NodeInfo nodeInfo,
                                            final NodeService nodeService,
                                            final String nodeName) {
        // A normal url is something like "http://fqdn:8080"
        final String url = nodeService.getBaseEndpointUrl(nodeName);

        if (url == null || url.isBlank()) {
            throw new RuntimeException("Remote node '" + nodeName + "' has no URL set");
        }

        final String thisNodeUrl = nodeService.getBaseEndpointUrl(nodeInfo.getThisNodeName());
        if (url.equals(thisNodeUrl)) {
            throw new RuntimeException("Remote node '" + nodeName + "' is using the same URL as this node");
        }

        return url;
    }
@param nodeName The name of the node to get the base endpoint for
@return The base endpoint url for inter-node communications, e.g. http://some-fqdn:8080
stroom-node/stroom-node-api/src/main/java/stroom/node/api/NodeCallUtil.java