private RepoPath getMetadataRepoPath(RepoPath parentRepoPath, String metadataName) {
    String path = parentRepoPath.getPath();
    boolean alreadyMetadataPath = NamingUtils.isMetadata(path);
    if (alreadyMetadataPath) {
      log.warn("Path {} is already a metadata path.", path);
    }
    // TODO: [by yl] Evaluate the impact of normalizing the path to use the standard metadata format
    // (a.jar#mdname)

    return InternalRepoPathFactory.create(
        parentRepoPath.getRepoKey(),
        alreadyMetadataPath ? path : NamingUtils.getMetadataPath(path, metadataName));
  }
 public MetadataInfoImpl(RepoPath repoPath) {
   this.repoPath = repoPath;
   this.name = NamingUtils.getMetadataName(repoPath.getPath());
   this.checksumsInfo = new ChecksumsInfo();
 }