docs: function createEntityObject(e) {
  		var obj = {id: e.id, className: e.constructor.name, children: []};
  		if (e.children && e.children.length > 0) {
  			e.children.forEach(function(c) {
  				obj.children.push(createEntityObject(c));
  			});
  		}
  		return obj;
  	}