if (legNode.getFromName().equals(legNode.getToName()))
if (legNode.getFromName().equals(legNode.getToName())) {
  protected void setLegLabel (Node leg, Lozenge loz) {    LegNode legNode = (LegNode) leg;    String shortName;    String longName;    if (taskModel instanceof AssetModel) {      if (legNode.getFromCode().equals(legNode.getToCode()))	shortName = legNode.getFromCode();      else	shortName = legNode.getFromCode() + "->" + legNode.getToCode();      if (legNode.getFromName().equals(legNode.getToName()))	longName = legNode.getFromName();      else	longName = legNode.getFromName() + "->" + legNode.getToName();    } else {      shortName = legNode.getCarrierName ();      longName  = legNode.getCarrierType () + ": " + shortName;    }    if (debug)      System.out.println ("Setting leg label " + longName);	      loz.addLozengeLabel(new LozengeLabel(longName, shortName, LozengeLabel.CENTER));  }