Stmt.declareFinalVariable(
roleListenerVar,
MetaClassFactory.parameterizedAs(LifecycleListener.class,
MetaClassFactory.typeParametersOf(ctx.getInjector().getInjectedType())),
Stmt.newObject(PageRoleLifecycleListener.class,
(Object[]) annotation.roles())));
ctx.getTargetInjector().addStatementToEndOfInjector(
Stmt.loadVariable("context")
.invoke("addInitializationCallback",
Refs.get(ctx.getInjector().getInstanceVarName()),
createInitializationCallback(