title: Unsafe generic cast when deserializing a Collection
body: <pre><code>public Configuration(Node node, File file) {
      HashMap&lt;String, String&gt; conf = (HashMap&lt;String, String&gt;) SerializationUtils.deserialize(new FileInputStream(file));
  }
  </code></pre>
  
  <p>I understand <em>why</em> this gives an unsafe cast warning, but what's the best/accepted way to do this safely?  Is there any good way?</p>