'Return the :class:`.BulkOpsRecord` for this course.'

def _get_bulk_ops_record(self, course_key, ignore_case=False):

    if (course_key is None):
        return self._bulk_ops_record_type()
    if ignore_case:
        for (key, record) in self._active_bulk_ops.records.iteritems():
            if ((key == course_key) or ((key.org and (key.org.lower() == course_key.org.lower())) and (key.course and (key.course.lower() == course_key.course.lower())) and (key.run and (key.run.lower() == course_key.run.lower())))):
                return record
    return self._active_bulk_ops.records[course_key.for_branch(None)]
