Modified createExtIdMapByCourse to allow wildcards for courses.