});
client.start();
}
protected <T> DataflowVariable<T> getPromise(ConcurrentMap<String, DataflowVariable<T>> registry, String name, String host, int port, SerialMsg requestMsg) {
DataflowVariable remoteVariable = registry.get(name);
if (remoteVariable == null) {
DataflowVariable newRemoteVariable = new DataflowVariable<>();
remoteVariable = registry.putIfAbsent(name, newRemoteVariable);
if (remoteVariable == null) {
createRequest(host, port, requestMsg);
remoteVariable = newRemoteVariable;
}