public File getCacheFolder(String workflowName) {

    // This should probably be replaced. I'm sure a util in JIRA already has a better way to
    // sanitize.
    String folderName = workflowName.replaceAll("[:\\\\/*?|<> _]", "-");
    File baseFolder = new File(jiraHome.getCachesDirectory(), BASE_CACHE_FOLDER);

    return new File(baseFolder, folderName);
  }