class FactoryProxy<T> implements InternalFactory<T>, BindingProcessor.CreationListener {

    private final InjectorImpl injector;
    private final Key<T> key;
    private final Key<? extends T> targetKey;
    private final Object source;

    private InternalFactory<? extends T> targetFactory;

    FactoryProxy(InjectorImpl injector, Key<T> key, Key<? extends T> targetKey, Object source) {
        this.injector = injector;
        this.key = key;
        this.targetKey = targetKey;
        this.source = source;
    }

    @Override
    public void notify(final Errors errors) {<FILL_FUNCTION_BODY>}

    @Override
    public T get(Errors errors, InternalContext context, Dependency<?> dependency)
            throws ErrorsException {
        return targetFactory.get(errors.withSource(targetKey), context, dependency);
    }

    @Override
    public String toString() {
        return new ToStringBuilder(FactoryProxy.class)
                .add("key", key)
                .add("provider", targetFactory)
                .toString();
    }
}

        try {
            targetFactory = injector.getInternalFactory(targetKey, errors.withSource(source));
        } catch (ErrorsException e) {
            errors.merge(e.getErrors());
        }
    
<no_super_class>