Copied over node creation logic to select template module
Autocommit Tue Dec 09 13:52:42 EST 2014