// utility methods ////////////////////////////////////// protected internal virtual IList <Group> executePaginatedQuery(GroupQuery query, int?firstResult, int?maxResults) { if (firstResult == null) { firstResult = 0; } if (maxResults == null) { maxResults = int.MaxValue; } return(query.listPage(firstResult, maxResults)); }