private void createFile() throws IOException {
        Date date = new Date();
        String dateSuffix = date.toString().replace(' ', '_');
        String fileName =
            feedId.toString()
                + "_"
                + frameDistributor.getFeedRuntimeType()
                + "_"
                + frameDistributor.getPartition()
                + "_"
                + dateSuffix;

        file = new File(fileName);
        if (!file.exists()) {
          boolean success = file.createNewFile();
          if (!success) {
            throw new IOException("Unable to create spill file for feed " + feedId);
          }
        }
        bos = new BufferedOutputStream(new FileOutputStream(file));
        if (LOGGER.isLoggable(Level.INFO)) {
          LOGGER.info("Created Spill File for feed " + feedId);
        }
      }