An abstract functional differential equation and a related nonlinear Volterra equation