The wars resulted in the dissolution of the Holy Roman Empire and sowed the seeds of nascent nationalism in Germany and Italy that would lead to the two nations ' respective consolidations later in the century .