code: public static PathImpl getWorkPath()
    {
      PathImpl workPath = WorkDir.getLocalWorkDir();
  
      if (workPath != null)
        return workPath;
  
      PathImpl path = WorkDir.getTmpWorkDir();
  
      try {
        path.mkdirs();
      } catch (IOException e) {
      }
  
      return path;
    }
docs: Returns a path to the work directory.  The work directory is
  specified in the conf by /caucho.com/java/work-path.  If
  unspecified, it defaults to /tmp/caucho.
  
  @return directory path to work in.