public static boolean collectionEquals( Collection<?> oldCollection, Collection<?> newCollection )
    {
        if ( oldCollection == null && newCollection == null ) {
            return true;
        }
        if ( oldCollection != null && newCollection != null && newCollection.size() == oldCollection.size() && oldCollection.containsAll( newCollection ) ) {
            return true;
        }
        return false;
    }