The article does not draw optimistic conclusions. My favorite lines from author Christine Fair's piece are these:
Unable to counter India’s expansion through diplomatic, military or political means, Pakistan relies upon the only tool it has: Islamist terrorist groups that operate in India and in Afghanistan.
Terrorism is a weapon used by the weak against the strong. A weak Pakistan cannot give it up.