Mining Contexts from an Application ’ s Interaction History