title: Convert Jruby HashMap to Java HashMap
body: <p>I need to pass a hashmap from a jruby function into a Java function.  I have tried it this way with no luck. </p>
  
  <pre><code>def rubyfunction
      clazz = com.package.clazz
      params = java.util.HashMap.new({:ID =&gt; 1})       
      clazz.javafunction(params)
  end
  
  
  public class clazz{
      public void javafunction(HashMap&lt;String, Object&gt; params){
          params.get("ID") //Gives back null
      }
  }
  </code></pre>
  
  <p>Is there a proper way to convert a jruby hashmap into a java hashmap?</p>