Class.prototype.addAttributeObj = function (attr) {
        this.attributes.push(attr);
        return this.getAttributes();
    };