CooWS: Adaptive BDI Agents meet Service-Oriented Programming