'Returns the first user partition from the course which uses the
CohortPartitionScheme, or generates one if no such partition is
found.  The created partition is not saved to the course until
the client explicitly creates a group within the partition and
POSTs back.'

@staticmethod
def get_or_create_content_group(store, course):

    content_group_configuration = get_cohorted_user_partition(course)
    if (content_group_configuration is None):
        content_group_configuration = UserPartition(id=generate_int_id(MINIMUM_GROUP_ID, MYSQL_MAX_INT, GroupConfiguration.get_used_ids(course)), name=CONTENT_GROUP_CONFIGURATION_NAME, description=CONTENT_GROUP_CONFIGURATION_DESCRIPTION, groups=[], scheme_id=COHORT_SCHEME)
        return content_group_configuration.to_json()
    content_group_configuration = GroupConfiguration.update_partition_usage_info(store, course, content_group_configuration)
    return content_group_configuration
