Make createNode return NodeRef [INCOMPLETE]