A role-based coordination model and its realization