I'd like to copy the code bloc A :
GetDirectRule(id);
and replace the following code bloc B with it :
pParentEngine->getIntelligenceBase()->getRuleByID(ruleID)
Finally I have to change the id keyword by the ruleID one since it is the one that goes with the current context.
The above suggestion is a way to do that fast without the need to make multiple cut/pastes or the need to recorrect the replacing code.