private List<DbTableRecord> getRecords(String sourceDB,
			DbDefinition dbDefinition, DbTableDefinition tableDefinition) {

		List<DbTableRecord> allRecords = new ArrayList<DbTableRecord>();

		if (sourceDB.equals(AppConstants.CONN_STRING_BASELINE_DB)) {
			try {
				if (null == dbConnectionBaseline
						|| dbConnectionBaseline.isClosed()) {
					dbConnectionBaseline = getDbConnection(dbDefinition,
							AppConstants.CONN_STRING_BASELINE_DB);
				}

				allRecords = getRecordsFromDb(dbConnectionBaseline,
						tableDefinition);
			} catch (Exception ex) {
				ex.printStackTrace();
				logger.fatal(Utils.buildExceptionMessage(ex));
				logger.info("The application has exited...");
				System.exit(0);				
			}
		} else {
			try {
				if (null == dbConnectionTarget || dbConnectionTarget.isClosed()) {
					dbConnectionTarget = getDbConnection(dbDefinition,
							AppConstants.CONN_STRING_TARGET_DB);
				}
				allRecords = getRecordsFromDb(dbConnectionTarget,
						tableDefinition);
			} catch (Exception ex) {
				ex.printStackTrace();
				logger.fatal(Utils.buildExceptionMessage(ex));
				logger.info("The application has exited...");
				System.exit(0);	
			}
		}
		return allRecords;
	}