FrameworkLibraryVersion (List<? extends FrameworkLibraryVersion> versions) { for (FrameworkLibraryVersion version : versions) { if (version.getVersionString().equals(myCurrentVersionString)) { return version; } } return versions.get(0); }