public static ISourceQueue getSourceQueueInstance(String type, IDBConnection con, String dbName, String dbCollName, boolean test, boolean interactiveOnly, boolean suspiciousOnly, String accountId, String sourceId, String engineId) {
if (!type.equals(con.getType())) return null;
if ("mongodb".equals(type)) {
try {
return new MongoDBSourceQueue((MongoDBConnection) con, dbName, dbCollName, test, interactiveOnly, suspiciousOnly, accountId, sourceId, engineId);
} catch (UnknownHostException e) {
e.printStackTrace();
return null;
}
}