Check to make sure that db object is not already authenticated before calling db.authenticate(...) to avoid "java.lang.IllegalStateException: can't call authenticate twice on the same DBObject"
Merge pull request #23 from osterman/mongo-datastore-is-authenticated-fix

db.authenticate called twice triggering exception