Separated unmarshal from setValue.