juan lined up closely with the duchy of bavaria a pioneer of the catholic league