public static boolean checkForDuplicatedSampleOrders(Collection<Sample> sampleList) {
boolean result = true;
List<Integer> orders = new ArrayList<Integer>();
for (Iterator<Sample> iterator = sampleList.iterator(); iterator.hasNext();) {
Sample sample = iterator.next();
List<Integer> sampleOrders = sample.getOrderList();
for (Iterator<Integer> iterator2 = sampleOrders.iterator(); iterator2.hasNext();) {
Integer sampleOrder = iterator2.next();
if (!orders.contains(sampleOrder)) {
orders.add(sampleOrder);
} else {