public void remove(Map<String, String> metadata) throws PersistenceException {
String contextFileName = getFileNameForMetaData(metadata);
File contextPersistenceFile = new File(storageFolder, contextFileName);
Boolean fileSuccessFullyDeleted = FileUtils.deleteQuietly(contextPersistenceFile);
if (!fileSuccessFullyDeleted) {
throw new PersistenceException(String.format("Could not delete context configuration file %s",
contextFileName));
}
LOGGER.info("Deleted context configuration file %s", contextFileName);
}