title: Convert object to map in java
body: <p>how I can convert Object to <code>Map&lt;String, String&gt;</code> 
  where <code>key</code> is <code>obj.parameter.name</code> and <code>value</code> is <code>obj.parameter.value</code></p>
  
  <p>for exaple: <code>Object obj = new myObject("Joe", "Doe");</code> convert to <code>Map</code> with keys: name, surname and values: Joe, Doe.</p>