stackmob/mongo-java-driver — comment on commit 2bef7d79f1a527f89fceafb01d981acd550aa6ee
File: src/main/com/mongodb/DBApiLayer.java line 128
By milesoc:

I think this .putIfAbsent thing might be new since the commit was written. Probably best to combine the two:

```java
MyCollection old = _collections.putIfAbsent(name, c);
if (old != null) return old;
else {
if (cmd != null) getMongo().getDB("admin").command(cmd);
return c;
}
```