code: public Set<DiscoverInfo.Identity> getIdentities() {
          Set<Identity> res = new HashSet<>(identities);
          // Add the main identity that must exist
          res.add(identity);
          return Collections.unmodifiableSet(res);
      }
docs: Returns all identities of this client as unmodifiable Collection.
  
  @return all identies as set