Extreme events in a network of heterogeneous Josephson junctions.