Removed LegacyUtil.toEnumeration and replaced it with Collections.enumeration