// Walk backwards and remove duplicates.
LinkedList newLogicSheetList = new LinkedList();
for(int i = logicSheetList.size()-1; i>=0; i--) {
Logicsheet logicsheet = (Logicsheet) logicSheetList.get(i);
if(newLogicSheetList.indexOf(logicsheet) == -1)
newLogicSheetList.addFirst(logicsheet);
}
// Add the list of logicsheets now.
Iterator iterator = newLogicSheetList.iterator();