title: Boolean return type not working with RestTemplate
body: <p>I am using Spring 3.0.3 RestTemplate for making RESTfull call to service which is deployed in servicemix ESB. Service method returns boolean value, and am unable to receive this in RestTemplate response. </p>
  
  <pre><code>String query = "?userId="+userId;
  RestTemplate rest = new RestTemplate();
  Map&lt;String, String&gt; params = new HashMap&lt;String, String&gt;();
  
  boolean status = rest.getForObject(SERVICE_URL+query,boolean.class,params);
  </code></pre>
  
  <p>And am getting below error</p>
  
  <pre><code>WARN : org.springframework.web.client.RestTemplate - GET request for "http://localhost:818 1/cxf/monitoring/logclear?userId=admin" resulted in 406 (Not Acceptable); invoking error handler org.springframework.web.client.HttpClientErrorException: 406 Not Acceptable at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultR esponseErrorHandler.java:69) at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:486)
      at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:443)
      at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:409)
      at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:206)
  </code></pre>
  
  <p>Any help is greatly appreciated. Thank you!</p>