Scripting the Service Encounter