code: public File getLocalFile() {
          if (this.localFile == null) {
              ChunkUtil util = new ChunkUtil();
              String contentId = contentItem.getContentId();
              if (util.isChunkManifest(contentId)) {
                  contentId = util.preChunkedContentId(contentId);
              }
  
              if (createSpaceDir) {
                  File spaceDir = new File(contentDir, contentItem.getSpaceId());
                  logger.debug("spaceDir.absolutePath={}", spaceDir.getAbsolutePath());
                  this.localFile = new File(spaceDir, contentId);
              } else {
                  this.localFile = new File(contentDir, contentId);
              }
          }
  
          logger.debug("localFile.absolutePath={}", this.localFile.getAbsolutePath());
  
          return this.localFile;
      }
docs: /*
  Gets the local storage file for the content item