How to turn off a process in a physics list?

I have a custom physics list QGSP_BIC_HIMB_HP, in which I would like to turn off the process PionPlusInelastic.

With this purpose, I added the following to G4HadronPhysicsQGSP_BIC_HIMB_HP::ConstructProcess():

G4UImanager* UI = G4UImanager::GetUIpointer();
UI->ApplyCommand("/process/inactivate PionPlusInelastic");

I recompiled Geant4 with this change, but that did not result in the process being inactivated.

How can I turn off the process PionPlusInelastic from the custom physics list?