Source:
public void process(Element element, JCodeModel codeModel, EBeansHolder eBeansHolder) throws Exception { TypeElement typeElement = (TypeElement) element; String annotatedComponentQualifiedName = typeElement.getQualifiedName().toString(); String generatedComponentQualifiedName = annotatedComponentQualifiedName + ModelConstants.GENERATION_SUFFIX; JDefinedClass generatedClass = codeModel._class(PUBLIC | FINAL, generatedComponentQualifiedName, ClassType.CLASS); EBeanHolder holder = eBeansHolder.create(element, EIntentService.class, generatedClass); JClass annotatedComponent = codeModel.directClass(annotatedComponentQualifiedName); holder.generatedClass._extends(annotatedComponent); holder.contextRef = _this(); JMethod init = holder.generatedClass.method(PRIVATE, codeModel.VOID, "init_"); holder.initBody = init.body(); { JMethod onCreate = holder.generatedClass.method(PUBLIC, codeModel.VOID, "onCreate"); onCreate.annotate(Override.class); JBlock onCreateBody = onCreate.body(); onCreateBody.invoke(init); onCreateBody.invoke(JExpr._super(), onCreate); } { JMethod onHandleIntent = holder.generatedClass.method(PUBLIC, codeModel.VOID, "onHandleIntent"); JVar intent = onHandleIntent.param(eBeansHolder.classes().INTENT, "intent"); onHandleIntent.annotate(Override.class); JBlock onHandleIntentBody = onHandleIntent.body(); aptCodeModelHelper.callSuperMethod(onHandleIntent, holder, onHandleIntentBody); holder.onHandleIntentIntent = intent; holder.onHandleIntentBody = onHandleIntentBody; } { holder.initIfActivityBody = null; holder.initActivityRef = null; } aptCodeModelHelper.addServiceIntentBuilder(codeModel, holder); }

Target:
public void process(Element element, JCodeModel codeModel, EBeansHolder eBeansHolder) throws Exception { TypeElement typeElement = (TypeElement) element; String annotatedComponentQualifiedName = typeElement.getQualifiedName().toString(); String generatedComponentQualifiedName = annotatedComponentQualifiedName + ModelConstants.GENERATION_SUFFIX; JDefinedClass generatedClass = codeModel._class(PUBLIC | FINAL, generatedComponentQualifiedName, ClassType.CLASS); EBeanHolder holder = eBeansHolder.create(element, EIntentService.class, generatedClass); JClass annotatedComponent = codeModel.directClass(annotatedComponentQualifiedName); holder.generatedClass._extends(annotatedComponent); holder.contextRef = _this(); JMethod init = holder.generatedClass.method(PRIVATE, codeModel.VOID, "init_"); holder.initBody = init.body(); { JMethod onCreate = holder.generatedClass.method(PUBLIC, codeModel.VOID, "onCreate"); onCreate.annotate(Override.class); JBlock onCreateBody = onCreate.body(); onCreateBody.invoke(init); onCreateBody.invoke(JExpr._super(), onCreate); } { JMethod onHandleIntent = holder.generatedClass.method(PUBLIC, codeModel.VOID, "onHandleIntent"); JVar intent = onHandleIntent.param(eBeansHolder.classes().INTENT, "intent"); onHandleIntent.annotate(Override.class); JBlock onHandleIntentBody = onHandleIntent.body(); aptCodeModelHelper.callSuperMethod(onHandleIntent, holder, onHandleIntentBody); holder.onHandleIntentIntent = intent; holder.onHandleIntentBody = onHandleIntentBody; } { holder.initIfActivityBody = null; holder.initActivityRef = null; } aptCodeModelHelper.addServiceIntentBuilder(codeModel, holder, annotationHelper); }