applicationDescriptor.getGenerators().add(injectionGeneratorFactory.build(getASTMethod("onCreate"), astType));
applicationDescriptor.getGenerators().add(observesExpressionGeneratorFactory.build(
getASTMethod("onCreate"),
getASTMethod("onCreate"),
getASTMethod("onTerminate")
<BUG>));
}</BUG>
private ASTMethod getASTMethod(String methodName, ASTType... args) {
return astElementFactory.findMethod(AndroidLiterals.APPLICATION, methodName, args);
}

applicationDescriptor.getGenerators().add(injectionGeneratorFactory.build(getASTMethod("onCreate"), astType));
applicationDescriptor.getGenerators().add(observesExpressionGeneratorFactory.build(
getASTMethod("onCreate"),
getASTMethod("onCreate"),
getASTMethod("onTerminate")
));
applicationDescriptor.getGenerators().add(applicationScopeSeedGenerator);
}
private ASTMethod getASTMethod(String methodName, ASTType... args) {
return astElementFactory.findMethod(AndroidLiterals.APPLICATION, methodName, args);
}
