I believe that China's deep answer to that problem is, "There are no just wars in the Spring and Autumn period. "
There are some internal policy papers to that effect.