remove duplicate code in annotation processors by introducing a base class AbstractAnnotationProcessor.java implementing common methods.