code: public void addIdentity(Identity identity) {
          identities.add(identity);
          identitiesSet.add(identity.getKey());
      }
docs: Adds a new identity of the requested entity to the discovered information.
  
  @param identity the discovered entity's identity