MavenArtifact (Artifact artifact, Map<Artifact, MavenArtifact> nativeToConvertedMap, File localRepository) { MavenArtifact result = nativeToConvertedMap.get(artifact); if (result == null) { result = convertArtifact(artifact, localRepository); nativeToConvertedMap.put(artifact, result); } return result; }