Use getId() method instead of id property