SMS: Semantic management of middleware