code: public CMAArray<CMASpaceMembership> fetchAll(Map<String, String> query) {
      throwIfEnvironmentIdIsSet();
      return fetchAll(spaceId, query);
    }
docs: Fetch all memberships of the configured space.
  
  @param query define which space memberships to return.
  @return the array of memberships.
  @throws IllegalArgumentException        if spaceId is null.
  @throws CMANotWithEnvironmentsException if environmentId was set using
  {@link CMAClient.Builder#setEnvironmentId(String)}.
  @see CMAClient.Builder#setSpaceId(String)