Revert "PLA-662: remove unnecessary recursion."
Revert "PLA-662: remove unnecessary recursion."

This reverts commit 650ae298de9eed423677ac4a4516433495ba7eb1.

CloudCoreo/cloudcoreo-client,CloudCoreo/cloudcoreo-client