I'd put this in the provider; to leave this classes simple, just for data transfer client <-> server