code: public String storeFile(Resource file) {
          try {
              File newFile = new File(temporaryStorage.toFile(), file.getFilename());
  
              log.info("Store file " + file + " to " + newFile);
  
              FileUtils.copyFile(file.getFile(), newFile);
  
              return newFile.getCanonicalPath();
          } catch (IOException e) {
              throw new CitrusRuntimeException("Failed to store file: " + file, e);
          }
      }
docs: Deploy resource object from resource folder and return path of deployed
  file
  
  @param file Resource to deploy to temporary storage
  @return String containing the filename to which the file is uploaded to.