public File findArtifact(String groupId, String artifactId, String extension, String classifier, String baseVersion) {
    String type = extension;
    if ("jar".equals(type) && classifier != null && !classifier.isEmpty()) {
      type = "tests".equals(classifier) || "test-jar".equals(classifier) ? "test-jar" : classifier;
    }

    String key = groupId + ':' + artifactId + ':' + type + ':' + baseVersion;
    String value = myMap.getProperty(key);

    if (value == null || value.length() == 0) {
      return null;
    }

    File file = new File(value);
    if (!file.exists()) {
      return null;
    }

    return file;
  }
public File findArtifact(String groupId, String artifactId, String extension, String classifier, String baseVersion)