Moved setId method from BaseAttribute to ServerAttribute to prevent changes of the id on client side