title: Convert a POJO to a <K,V> map
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/739689/how-to-convert-a-java-object-bean-to-key-value-pairs-and-vice-versa">How to convert a Java object (bean) to key-value pairs (and vice versa)?</a>  </p>
  </blockquote>
  
  
  
  <p>What is the best way to convert a <code>List&lt;POJO&gt; to a List&lt;Map&lt;K,V&gt;&gt;.</code>
  Is there a custom method/ API? </p>
  
  <p>K = field name of the POJO and V is the corresponding value</p>
  
  <pre><code>public class POJO implements Serializable{
  
  String name;
  String age;
  //getters and setters
  }
  </code></pre>