Hierarchical models for service-oriented systems