container/src/main/java/com/streamsets/datacollector/classpath/CollisionWhitelist.java
private static boolean versionsMatch(String expectedVersions, Set<String> versions) {
    Set<String> expectedSet = Sets.newHashSet(expectedVersions.split(","));
    return Sets.symmetricDifference(expectedSet, versions).isEmpty();
  }
private static boolean versionsMatch(String expectedVersions, Set<String> versions) {
    Set<String> expectedSet = Sets.newHashSet(expectedVersions.split(","));
    return Sets.symmetricDifference(expectedSet, versions).isEmpty();
  }
Compare expected versions with given versions to see if they are the same or not.

@param expectedVersions Versions that are expected (and thus whitelisted)
@param versions Versions that were detected on the classpath.
@return True if and only if those two "sets" equals