Developing Pervasive Agent-Based Applications: A Comparison of Two Coordination Approaches