class DefaultDependencyCoordinateFactory implements DependencyCoordinateFactory {

    @Nonnull
    @Override
    public DependencyCoordinate create(@Nonnull DependencyCoordinateFactoryRequest request) {<FILL_FUNCTION_BODY>}

    private org.eclipse.aether.graph.Exclusion toExclusion(Exclusion exclusion) {
        return new org.eclipse.aether.graph.Exclusion(exclusion.getGroupId(), exclusion.getArtifactId(), "*", "*");
    }
}

        nonNull(request, "request");
        InternalSession session = InternalSession.from(request.getSession());

        ArtifactType type = null;
        if (request.getType() != null) {
            type = session.getSession().getArtifactTypeRegistry().get(request.getType());
        }
        if (request.getCoordinateString() != null) {
            return new DefaultDependencyCoordinate(
                    session,
                    new org.eclipse.aether.graph.Dependency(
                            new org.eclipse.aether.artifact.DefaultArtifact(request.getCoordinateString()),
                            request.getScope(),
                            request.isOptional(),
                            map(request.getExclusions(), this::toExclusion)));
        } else {
            return new DefaultDependencyCoordinate(
                    session,
                    new org.eclipse.aether.graph.Dependency(
                            new org.eclipse.aether.artifact.DefaultArtifact(
                                    request.getGroupId(),
                                    request.getArtifactId(),
                                    request.getClassifier(),
                                    request.getExtension(),
                                    request.getVersion(),
                                    type),
                            request.getScope(),
                            request.isOptional(),
                            map(request.getExclusions(), this::toExclusion)));
        }
    
<no_super_class>