docs: public RosterEntry getEntry(Jid user) {
          if (user == null) {
              return null;
          }
          // Roster entries never include a resource so remove the resource
          // if it's a part of the XMPP address.
          user = user.asBareJid();
          synchronized (entries) {
              for (RosterEntry entry : entries) {
                  if (entry.getJid().equals(user)) {
                      return entry;
                  }
              }
          }
          return null;
      }