if (array == null || array.count() == 0) return NSSet.EmptySet; else { Object [] objs = new Object[array.count()]; objs = array.objects(); return new NSSet(objs); }
return ERXArrayUtilities.setFromArray(array);
    public static NSSet setFromArray(NSArray array) {        if (array == null || array.count() == 0)            return NSSet.EmptySet;        else {            Object [] objs = new Object[array.count()];            objs = array.objects();            return new NSSet(objs);        }    }