docs: private static RosterPacket.Item toRosterItem(RosterEntry entry, String name, boolean includeAskAttribute) {
          RosterPacket.Item item = new RosterPacket.Item(entry.getJid(), name);
          item.setItemType(entry.getType());
          if (includeAskAttribute) {
              item.setSubscriptionPending(entry.isSubscriptionPending());
          }
          item.setApproved(entry.isApproved());
          // Set the correct group names for the item.
          for (RosterGroup group : entry.getGroups()) {
              item.addGroupName(group.getName());
          }
          return item;
      }