Grefwe Carl Stellan Mörner ,Magistraten