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