title: Trying to create a mongodb collection in grails using mongodb plugin
body: <p>I am trying to create a mongodb collection in grails using:</p>
  
  <pre><code>BasicDBObject DBoptions = new BasicDBObject();
  DBCollection collection = db.createCollection("xyz",DBoptions)
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>Caused by GroovyRuntimeException: Ambiguous method overloading for method com.mongodb.DBApiLayer#createCollection.    
  Cannot resolve which method to invoke for [class java.lang.String, class com.mongodb.BasicDBObject] 
  due to   overlapping prototypes between:
  [class java.lang.String, interface com.mongodb.DBObject]
  [class java.lang.String, interface java.util.Map]
  </code></pre>
  
  <p>Any ideas on how to solve this?</p>
  
  <p>Thanks</p>