public String getArtifactFilename(String classifier) {
    if (this.name == null) throw new IllegalStateException("Cannot get artifact filename of empty/blank artifact");

    String[] parts = this.name.split(":", 3);
    String result = String.format("%s-%s%s.jar", new Object[] { parts[1], parts[2], "-" + classifier });

    return SUBSTITUTOR.replace(result);
  }