the inserting comprises replacing at least one instruction of the computer program with at least one instruction of the constraint code, and storing the replaced instruction in the gateway, the at least one instruction being inserted including an instruction to call the gateway, which executes the replaced instruction.