Adaptive Domain Generalization For Digital Pathology Images