title: Convert comma separated key=value pairs to Java object
body: <p>I'm trying to implement a HttpMessageConverter which would allow my program to talk over REST to an embedded smart controller.</p>
  
  <p>The controller responds with strings such as:</p>
  
  <pre><code>ret=OK,htemp=27.0,hhum=-,otemp=27.0,err=0,cmpfreq=24
  </code></pre>
  
  <p>I have a Java object called SensorInfo.</p>
  
  <pre><code>public class SensorInfo {
  
     String ret;
     Double htemp;
     String hhum;
     Double otemp;
     Integer err;
     Integer cmpfreq;
  
     // getters and setters
  
  }
  </code></pre>
  
  <p>What's the best way of mapping the controller response to the above Java object?</p>