Fixed bug in RestService where I tried to put a value in the map before creating it.