function newInstance(args) {
    var instance = args ? Factory.newInstance.call(this, args) : this._managedType.create(args);
    instance._metadata.db = this._db;
    return instance;
  }
/**
   * Creates a new instance of the factory type
   * @param {Array<*>=} args Constructor arguments used for instantiation, the constructor will not be called
   * when no arguments are passed
   * @return {T} A new created instance of T
   */
Creates a new instance of the factory type
@param {Array<*>=} args Constructor arguments used for instantiation, the constructor will not be called
when no arguments are passed
@return {T} A new created instance of T
Creates a new instance of the factory type @param { Array< * > = } args Constructor arguments used for instantiation the constructor will not be called when no arguments are passed @return { T } A new created instance of T
function newInstance(args) {
    var instance = args ? Factory.newInstance.call(this, args) : this._managedType.create(args);
    instance._metadata.db = this._db;
    return instance;
  }
function newInstance ( args ) { var instance = args ? Factory . newInstance . call ( this , args ) : this . _managedType . create ( args ) ; instance . _metadata . db = this . _db ; return instance ; }
Creates a new instance of the factory type
 @param {Array<*>=} args Constructor arguments used for instantiation, the constructor will not be called
 when no arguments are passed
 @return {T} A new created instance of T
Creates a new instance of the factory type @param { Array< * > = } args Constructor arguments used for instantiation the constructor will not be called when no arguments are passed @return { T } A new created instance of T