code: public synchronized File getTempDirectory() throws IOException {
          if (tempDirectory == null) {
              final File baseTemp = new File(getString(Settings.KEYS.TEMP_DIRECTORY, System.getProperty("java.io.tmpdir")));
              tempDirectory = FileUtils.createTempDirectory(baseTemp);
          }
          return tempDirectory;
      }
docs: Returns the temporary directory.
  
  @return the temporary directory
  @throws java.io.IOException if any.