Fix setProfile method

Broken in adad83fdf5fd025048e1804f6f602ed1e9d226b9
Dry the code

Add hidden __send and __sendAndReceive convenience methods