On competitive self-composition in pervasive services