return nextAvailablePort(portValue, null);
}
protected int nextAvailablePort(int portValue, InetAddress bindAddr) {
PortManager portManager = ServiceLocator.getRequiredService(PortManager.class);
return portManager.nextAvailablePort(portValue, bindAddr);
}
/**
* Runnable that consumes the output of the process.
* If nothing consumes the output the container may hang on some platforms