code: public void contextInitialized(ServletContextEvent servletContextEvent) {
  		ServletContext servletContext = servletContextEvent.getServletContext();
  
  		File tempWriteDir = (File) servletContext
  				.getAttribute("javax.servlet.context.tempdir");
  		servletContext.setAttribute("audioFilePath", FILE_PROTOCOL + tempWriteDir
  				.getAbsolutePath() + File.separatorChar);
  		for (int i = 0; i < AUDIO_FILES.length; i++) {
  			String audioFile = AUDIO_FILES[i];
  			logger.info("Writing " + audioFile + " to webapp temp dir : "
  					+ tempWriteDir);			
  			InputStream is = servletContext.getResourceAsStream(AUDIO_DIR + "/" + audioFile);
  			copyToTempDir(is, tempWriteDir, audioFile);
  		} 
  	}
docs: /*
  (non-Javadoc)
  
  @see javax.servlet.ServletContextListener#contextInitialized(javax.servlet.ServletContextEvent)