Ohh the easiest solution is probably just pull the function wrapping business directly into parseAndExractCorrespondingNode. Maybe try parsing the code directly, and if that fails do the function wrapping?