Added recursion into annotation processing to handle nested scenarios.