docs: @Override
      public EntityIdentifier[] searchForEntities(
              String query, IGroupConstants.SearchMethod method, Class type) throws GroupsException {
          Set allIds = new HashSet();
  
          for (Iterator services = getComponentServices().values().iterator(); services.hasNext(); ) {
              IIndividualGroupService service = (IIndividualGroupService) services.next();
              EntityIdentifier[] ids = service.searchForEntities(query, method, type);
              for (int i = 0; i < ids.length; i++) {
                  allIds.add(ids[i]);
              }
          }
          return (EntityIdentifier[]) allIds.toArray(new EntityIdentifier[allIds.size()]);
      }