static init(instance, properties) {
    var type = instance.constructor.__ype__;
    if (type) {
      Object.defineProperty(instance, '_metadata', {
        value: Metadata.create(type, instance),
        configurable: true
      });
    }

    if (properties)
      Object.assign(instance, properties);
  }
/**
   * Initialize the given instance
   * @param {binding.Managed} instance The managed instance to initialize
   * @param {Object=} properties The optional properties to set on the instance
   */
Initialize the given instance
@param {binding.Managed} instance The managed instance to initialize
@param {Object=} properties The optional properties to set on the instance
Initialize the given instance @param { binding . Managed } instance The managed instance to initialize @param { Object = } properties The optional properties to set on the instance
static init(instance, properties) {
    var type = instance.constructor.__ype__;
    if (type) {
      Object.defineProperty(instance, '_metadata', {
        value: Metadata.create(type, instance),
        configurable: true
      });
    }
    if (properties)
      Object.assign(instance, properties);
  }
static init ( instance , properties ) { var type = instance . constructor . __ype__ ; if ( type ) { Object . defineProperty ( instance , '_metadata' , { value : Metadata . create ( type , instance ) , configurable : true } ) ; } if ( properties ) Object . assign ( instance , properties ) ; }
Initialize the given instance
 @param {binding.Managed} instance The managed instance to initialize
 @param {Object=} properties The optional properties to set on the instance
Initialize the given instance @param { binding . Managed } instance The managed instance to initialize @param { Object = } properties The optional properties to set on the instance