docs: function (packageDef, typeName) {
                  var path = {
                      '$properties' : packageDef.$beans
                  };
                  var typeParts = typeName.split('.');
                  for (var i = 0; i < typeParts.length; i++) {
                      var elt = typeParts[i];
                      if (elt == '$contentType' && path.$contentType) {
                          // the content type of an Array or a Map can be used
                          // as a type elsewhere
                          path = path.$contentType;
                      } else if (typeof(path.$properties) == 'object' && path.$properties != null) {
                          path = path.$properties[elt];
                      } else {
                          path = null;
                      }
                      if (typeof(path) != 'object' || path == null) {
                          this._logError(this.INVALID_TYPE_REF, [typeName, this._currentBeanName, packageDef.$package]);
                          return this._typeRefError;
                      }
                  }
                  return path;
              }