@Inject
InstanceHelpers instances;
public URI buildUri(NetworkPoint src, String scheme, ItemBase model, int port) throws OpsException {
Machine machine = instances.getMachine(model);
InetAddressChooser chooser = InetAddressChooser.preferIpv6();
InetAddress address = machine.getNetworkPoint().getBestAddress(src, chooser);
String host = InetAddresses.toAddrString(address);
URI uri;
try {