question: public Enumeration < String > communities ( ) { HashSet < String > set = new HashSet < String > ( ) ; Vector < String > res = new Vector < String > ( ) ; for ( Enumeration < AclEntry > e = acl . entries ( ) ; e . hasMoreElements ( ) ; ) { AclEntryImpl entry = ( AclEntryImpl ) e . nextElement ( ) ; for ( Enumeration < String > cs = entry . communities ( ) ; cs . hasMoreElements ( ) ; ) { set . add ( cs . nextElement ( ) ) ; } } String [ ] objs = set . toArray ( new String [ 0 ] ) ; for ( int i = 0 ; i < objs . length ; i ++ ) res . addElement ( objs [ i ] ) ; return res . elements ( ) ; }
target:  Returns ann enumeration of community strings. Community strings are returned as String.