* the Artifact type catalog to determine common artifact properties
* @return Equivalent Aether dependency
*/
public static MavenDependency fromDependency(org.apache.maven.model.Dependency dependency,
ArtifactTypeRegistry registry) {
ArtifactType stereotype = registry.get(dependency.getType());
if (stereotype == null) {
stereotype = new DefaultArtifactType(dependency.getType());
}
boolean system = dependency.getSystemPath() != null && dependency.getSystemPath().length() > 0;