public static Path getDefaultMetadataFile(@NotNull String recorderId,
                                            @NotNull String fileName,
                                            @Nullable String deprecatedFileName) throws IOException {
    Path file = getMetadataByDir(FUS_METADATA_DIR, recorderId, fileName);
    if (!Files.exists(file) && Strings.isNotEmpty(deprecatedFileName)) {
      Path deprecated = getMetadataByDir(DEPRECATED_FUS_METADATA_DIR, recorderId, deprecatedFileName);
      if (Files.exists(deprecated)) {
        if (LOG.isTraceEnabled()) {
          LOG.trace("Moving deprecated metadata file to new directory: " + fileName);
        }

        try {
          Files.createDirectories(file.getParent());
        }
        catch (IOException ignored) {
          LOG.info("Cannot create directories for event log metadata");
          return file;
        }

        Files.copy(deprecated, file);
        Files.deleteIfExists(deprecated);
      }
    }
    return file;
  }
public static Path getDefaultMetadataFile(@NotNull String recorderId,
                                            @NotNull String fileName,
                                            @Nullable String deprecatedFileName)