Added transform() method to the rule contexts