Recursive invoke method in snippets