code: public int compareTo(Address a)
     {
        int compare = workManagerId.compareTo(a.getWorkManagerId());
        if (compare != 0)
           return compare;
  
        compare = workManagerName.compareTo(a.getWorkManagerName());
        if (compare != 0)
           return compare;
  
        if (transportId != null)
        {
           if (a.getTransportId() != null)
           {
              return transportId.compareTo(a.getTransportId());
           }
           else
           {
              return 1;
           }
        }
        else
        {
           if (a.getTransportId() != null)
           {
              return -1;
           }
        }
  
        return 0;
     }
docs: {@inheritDoc}