class DefaultConflictResolverFactory implements ConflictResolverFactory, Contextualizable {
    // fields -----------------------------------------------------------------

    /**
     * The plexus container used to obtain instances from.
     */
    @Inject
    private PlexusContainer container;

    // ConflictResolverFactory methods ----------------------------------------

    /*
     * @see org.apache.maven.artifact.resolver.conflict.ConflictResolverFactory#getConflictResolver(java.lang.String)
     */

    public ConflictResolver getConflictResolver(String type) throws ConflictResolverNotFoundException {<FILL_FUNCTION_BODY>}

    // Contextualizable methods -----------------------------------------------

    /*
     * @see org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable#contextualize(org.codehaus.plexus.context.Context)
     */

    public void contextualize(Context context) throws ContextException {
        container = (PlexusContainer) context.get(PlexusConstants.PLEXUS_KEY);
    }
}

        try {
            return (ConflictResolver) container.lookup(ConflictResolver.ROLE, type);
        } catch (ComponentLookupException exception) {
            throw new ConflictResolverNotFoundException("Cannot find conflict resolver of type: " + type);
        }
    
<no_super_class>