I think the below is a better and (correct ?) approach ?

```java
item.groupNum = groupNum;
```