code: public String getStoredFile(String filename) {
          try {
              File stored = new File(temporaryStorage.toFile(), filename);
  
              if (!stored.exists()) {
                  throw new CitrusRuntimeException("Failed to access stored file: " + stored.getCanonicalPath());
              }
  
              return stored.getCanonicalPath();
          } catch (IOException e) {
              throw new CitrusRuntimeException("Failed to retrieve file: " + filename, e);
          }
      }
docs: Retrieve resource object
  
  @param filename Resource to retrieve.
  @return String with the path to the resource.