public static Device lookup (Host host, Dictionary dict, String name)
    {
	String		portId = (String) dict.get (name);
	PortIdentifier	id = null;

	try {
	    if (portId != null)
		id = new PortIdentifier (portId);
	} catch (IllegalArgumentException e) {
	    try {
		id = new PortIdentifier (name);
	    } catch (IllegalArgumentException x) {
	    }
	}
	try {
	    return id == null ? null : id.getDevice (host);
	} catch (IOException e) {
	    return null;
	}
    }