He expressed his gratitude by devoting the rest of his life to refurbishing a town devastated by the Thirty Years ' War of the previous century .
He devoted the rest of his life to refurbishing a town .