I too got the same issue, someone used BeanUtils.copyProperties(source, target)
. Here both source and target, are using the same collection as attribute.
So i just used the deep copy as below..
How to Clone Collection in Java - Deep copy of ArrayList and HashSet