int size = downloadRecord.getDownloadedSize();
if (downloadRecord.unarchived())
size += downloadRecord.getExtractedSize();
MeasurableCapability mCap = computeResource.getMeasurableCapability("DiskSpace");
if (mCap != null)
costList.add(mCap.calculateResourceCost(new Integer(size).doubleValue(), duration));
else {
if (logger.isDebugEnabled()) {
logger.warn("DiskSpace capability not found, cannot create ResourceCost");
}
}