title: How to read a yml file into a java hashmap in dropwizard
body: <p>In my config.yml I have a configuration like this</p>
  
  <pre><code>myObject:
    key1: value1
    key2:value2
    key3: value3
  </code></pre>
  
  <p>I then have a Dropwizard Configuration class as </p>
  
  <pre><code>public class MyObject {
  
  String key1;
  String value1;
  String key2;
  .. so on
  
  }
  </code></pre>
  
  <p>How do I read the yml file so that its read as just one hashmap? Is this possible?</p>