Gaudentius Andreas Edler von Dunkler, Dr. theol.