Towards the synthesis of context-aware choreographies