Is there a reason why you need to create an ArrayList?  Can't you just pass the the list from Arrays.asList to setParameter?