Reproduction of code:
////////////////////////
Set relationship = new HashSet();
relationship.add(RelationshipType.hypernym);
List l = WordApi.related("gown", false, relationship, 20);
…
When performing a find using Grails integration with mongo DB plugin, we are converting a map to a basic DB object using code similar to:
``` groovy
DomainClass.collection.find([name:"..."] as BasicD…