Supporting a territorial emergency scenario with Services and Agents: a case study comparison