public static ISourceItemsQueue getSourceItemsQueueInstance(String type, int sourceId, IDBConnection con, String dbName, String dbCollName) {
if (!type.equals(con.getType())) return null;
if ("mongodb".equals(type)) {
try {
return new MongoDBSourceItemsQueue(sourceId, (MongoDBConnection) con, dbName, dbCollName);
} catch (UnknownHostException e) {
e.printStackTrace();
return null;
}
}