Knowledge-Based Approach to Augment Applications With Interaction Traces