add generic in AbstractProcessor constructor