Towards a comprehensive approach to spontaneous self-composition in pervasive ecosystems