code: function(type) {
          if (!type || !this.eClass) return false;
  
          var typeName = type.eClass ? type.get('name') : type;
  
          return this.eClass.get('name') === typeName;
      }
docs: Returns true if the EObject is a direct instance of the EClass.  @method isTypeOf @param {String} type @return {Boolean}