@Override
  protected String adapt(MavenSnapshotVersionAdapterContext context) {
    String path = context.getRepoPath().getPath();

    String fileName = PathUtils.getFileName(path);
    if (MavenNaming.isUniqueSnapshotFileName(fileName)) {
      log.debug(
          "File '{}' has already a unique snapshot version. Returning the original path.",
          fileName);
      return path;
    }

    String pathBaseVersion = context.getModuleInfo().getBaseRevision();
    if (!fileName.contains(pathBaseVersion + "-" + MavenNaming.SNAPSHOT)) {
      log.debug(
          "File '{}' doesn't contain the non-unique snapshot version {}. "
              + "Returning the original path.",
          fileName,
          pathBaseVersion);
      return path;
    }

    // Replace 'SNAPSHOT' with version timestamp for unique snapshot repo
    return adjustNonUniqueSnapshotToUnique(context);
  }