You should try using new ArrayList(collection)