Hypothetically.. and a wild tangent..
You have an aircraft that cannot fly.. and you find out that it will take a lot of cash to get the airframe back and refitted and so on and so forth. But at the end it is still listed as damaged or written off.
So you decide that while the aircraft is a loss, you still have a lot of equipment sitting around that could be send to a certain unnamed building near the office of Fauji Foundation in RWP or sent to a certain republic that has a MS degree offered in reverse engineering.
You look at both options and find that the said republic would be more than glad to have whole intact highly sophisticated AESA radar arrays , ESM systems and what not to look at, examine and attempt to reverse engineer along with promising to let you have the first replica for the similar product (and other wise) that they sold to you and some stuff you keep for your own attempts at reverse engineering.
You have Swedish folks asking you what you want to do with the stuff and you decide to tell them that it was a complete loss and all over and cordon up the airframe within a Hangar to have it stripped away piece by piece. Official statements are made.. some embarasssments done.. but overall you walk away happy that you may get something better out of this fiasco overall.
It's a theory..