[teiid-issues] [JBoss JIRA] (TEIID-5895) Create common mongodb logic