entityManager = entityManagerFactory.createEntityManager();
source = new ExistingPostgresDataBulkExportSource(entityManager,
"SELECT schedule_id, time_stamp, value, minvalue, maxvalue FROM RHQ_MEASUREMENT_DATA_NUM_1D");
StopWatch stopWatch = new StopWatch();
stopWatch.start();
source.initialize();
int rowIndex = 0;
int maxResults = 30000;
for (;;) {
List<Object[]> existingData = source.getData(rowIndex, maxResults);
if (existingData.size() < maxResults) {