Almost periodic solutions of abstract functional differential equations with infinite delay