When you want to do a factory replacement of a transaction class in your scenario,we assign the factory to .using.
Scenario.using=transaction_factory;
The gotcha in this factory replacement is we need to implement the allocate() and copy() methods in the extended class for the factory replacement to work.
Many times i have seen people including myself spending time debugging their code when using “.using” for factory replacement as they are not aware of the gotcha.Maybe the RVM/VMM documentation should have this requirement highlighted so that the user can easily understand this requirement.