for(Iterator i = groups.values().iterator(); i.hasNext(); ) {
for(Iterator i = groups.valueIterator(); i.hasNext(); ) {
	public synchronized String[] getGroups() {		ArrayList list = new ArrayList(groups.size());		Group group;		for(Iterator i = groups.values().iterator(); i.hasNext(); ) {			group = (Group) i.next();			list.add(group.getName());		}		String[] gl = new String[list.size()];		list.toArray(gl);		return gl;	}