code: protected AbstractMetadataResolver getMetadataResolverFromResponse(final HttpResponse response, final File backupFile) throws Exception {
          val entity = response.getEntity();
          val result = IOUtils.toString(entity.getContent(), StandardCharsets.UTF_8);
          val path = backupFile.toPath();
          LOGGER.trace("Writing metadata to file at [{}]", path);
          try (val output = Files.newBufferedWriter(path, StandardCharsets.UTF_8)) {
              IOUtils.write(result, output);
              output.flush();
          }
          EntityUtils.consume(entity);
          return new InMemoryResourceMetadataResolver(backupFile, configBean);
      }
docs: Gets metadata resolver from response.
  
  @param response   the response
  @param backupFile the backup file
  @return the metadata resolver from response
  @throws Exception the exception