Context-Aware Automation System (CAS)