How to solve addService() and plug/unplug events on a single REST request?