Why is China shielding terrorist Masood Azhar?

China is the only country standing between Masood Azhar and international sanctions. By shielding Masood Azhar for the fourth time, China has openly supported Pakistan.   China used its veto power to block global community's efforts to declare Masood Azhar a global terrorist. Know why is China going out of its way to support Masood Azhar.