@Override
  public boolean equals(final Object orderedItem)
  {
    if (this == orderedItem)
    {
      return true;
    }
    if (!(orderedItem instanceof LineItem))
    {
      return false;
    }
    final LineItem that = (LineItem) orderedItem;
    /* @formatter:off */
    return this.item == that.getItem() ||
            (null != this.item && this.item.equals(that.getItem()));
    /* @formatter:on */
  }