#methodpath and #datasourcemethodpath macro usage

i need to use #methodpath or #datasourcemethodpath (from #aot) to get certain method from a form’s datasource. i’m going to use it in TreeNode::findNode method. could someone help me? i’d be really thankful…