Juan Carlos Ferrero triumphed in the all-Spanish final at the Mercedes Cup in Stuttgart to win the 16th title of his career.