factoryFor(type) {
    let camelizedType = camelize(type);

    if (this._factoryMap && this._factoryMap[camelizedType]) {
      return this._factoryMap[camelizedType];
    }
  }
Get the factory for a given type.

@method factoryFor
@param {String} type
@private
@hide