code: function getGlobalRef(name) {
      var r=global[name];
      if (r===undefined) {
          r=null;
      }
      return r;
  }
docs: Return the global reference corresponding to a given name
  This function is used by template to retrieve global references that are first searched in the template module
  scope, then in the hashspace global object. Null is returned if no reference is found
  @param {String} name the name of the reference to look for
  @param {Object} obj the object found in the module scope