i have set of data in list in java and my task is to set the same color for the data which have same reference number some how code is giving me right color but except last