'Update usage information for particular Group Configuration.
Returns json of particular group configuration updated with usage information.'

@staticmethod
def update_usage_info(store, course, configuration):

    configuration_json = None
    if (configuration.scheme.name == RANDOM_SCHEME):
        split_tests = store.get_items(course.id, category='split_test', content={'user_partition_id': configuration.id})
        configuration_json = configuration.to_json()
        usage_information = GroupConfiguration._get_content_experiment_usage_info(store, course, split_tests)
        configuration_json['usage'] = usage_information.get(configuration.id, [])
    elif (configuration.scheme.name == COHORT_SCHEME):
        configuration_json = GroupConfiguration.update_partition_usage_info(store, course, configuration)
    return configuration_json
