}
System.out.println("Importing read group sets into: " + dataset.getName());
// Start the import
Genomics.Readgroupsets.GenomicsImport req = genomics.readgroupsets().genomicsImport(
new ImportReadGroupSetsRequest().setDatasetId(datasetId)
.setSourceUris(bamFiles));
String jobId = req.execute().getJobId();
// Get the resulting job
addJobToHistory(jobId, "Import read group sets to " + dataset.getName() + " from "