DROOLS-236: BZ-1000385: BZ-1000384: fixing serialization when TMS is dinamically enabled/disabled