That coud be somethink like "new File(configuration.getTempFolder(), in.getName() + "_" + System.currentTimeMillis() + "_tc_.srt")"; because there will be a conflict when other renderer would try to play the same file. And also is better to create the temp file in temp folder than in data folder.. It is a temporary file which will not be used again.