code: function createNamespace(parent, parts) {
  
    var part = getName(parts.shift());
  
    if (!parent[part]) {
      parent[part] = {};
    }
  
    if (parts.length) {
      parent = createNamespace(parent[part], parts);
    }
  
    return parent;
  }
docs: Create Namespace function - creates a namespace map.
  
  @param parent {Object} Current register.
  @param parts {Array} Namespace location map.
  @return parent {Object} current namespace.