The lessons from the twilight of the Qing Dynasty have become all the more pointed today, when Chinese-Japanese ties are tenser than they have been for decades, and President Xi Jinping of China has embarked on an ambitious program to overhaul the military and to curtail corruption throughout the military and the party.