code: public static IBond.Order getMaximumBondOrder(IBond.Order firstOrder, IBond.Order secondOrder) {
          if (firstOrder == Order.UNSET) {
              if (secondOrder == Order.UNSET) throw new IllegalArgumentException("Both bond orders are unset");
              return secondOrder;
          }
          if (secondOrder == Order.UNSET) {
              if (firstOrder == Order.UNSET) throw new IllegalArgumentException("Both bond orders are unset");
              return firstOrder;
          }
  
          if (isHigherOrder(firstOrder, secondOrder))
              return firstOrder;
          else
              return secondOrder;
      }
docs: Returns the maximum bond order for the two bond orders.
  
  @param  firstOrder  first bond order to compare
  @param  secondOrder second bond order to compare
  @return             The maximum bond order found