}
private void addInterfaceIfMissing(Connection arg0, Device arg1, Device arg2) {
if (arg1.getInterfaceFor(arg0) == null) {
if (arg1.equals(arg2)) {
arg1.addInterface(new LogicalIF(arg1, arg0, ""));
} else {
String t = arg1.getType().toString() + "";
NetworkIF nif;
if (t.contains("Switch") || t.contains("Hub") || t.contains("Wireless")) {
nif = new TransparentIF(arg1, arg0, arg2.getInterfaceFor(arg0));