Esterhazy, Joseph, active 1822-1827, civil servant