IMergeable coveragedata = null;
for (int i = 0; i < coveragefiles.length; i++) {
coveragedata = loadDataFile(coveragedata, DataFactory.TYPE_COVERAGEDATA, coveragefiles[i]);
monitor.worked(1);
}
ISessionData sessiondata = new SessionData((IMetaData) metadata, (ICoverageData) coveragedata);
try {
DataFactory.persist(sessiondata, new File(destination), false);
} catch (IOException e) {
throw new CoreException(EclEmmaStatus.COVERAGEDATA_FILE_READ_ERROR
.getStatus(destination, e));