Injecting parent method in all nodes