// load the XML data for the campaign
String filePath = PathUtils.buildPath(campaignStoragePath, id);
logger.trace("filePath: " + filePath);
logger.info("Loading campaign metadata from file: " + filePath);
XMLDecoder dec = new XMLDecoder(new BufferedInputStream(new FileInputStream(filePath)));
CampaignMetadata cm = (CampaignMetadata)dec.readObject();
logger.trace("campaign metadata: " + cm);
dec.close();
return cm;
}
catch(Exception e) {
logger.error("Exception caught while trying to load campaign metadata for campaign: " + id + ": "