public static List getListFieldsForGroup(GrouperSession s,Group g) throws SchemaException{ List lists = new ArrayList(); Set types = g.getTypes(); Iterator it = types.iterator(); Set fields; Field field; Iterator fieldsIt; GroupType type; while(it.hasNext()) { type = (GroupType)it.next(); fields=type.getFields(); fieldsIt=fields.iterator(); while(fieldsIt.hasNext()) { field = (Field)fieldsIt.next(); if(field.getType().equals(FieldType.LIST)&& !"members".equals(field.getName())) { if(canRead(s,field,g)) { lists.add(field.getName()); } } } }  return lists;
public static List getListFieldsForGroup(GrouperSession s,String groupId) throws Exception{ Group g = GroupFinder.findByUuid(s,groupId); return getListFieldsForGroup(s,g);
	public static List getListFieldsForGroup(GrouperSession s,Group g) throws SchemaException{		List lists = new ArrayList();		Set types = g.getTypes();		Iterator it = types.iterator();		Set fields;		Field field;		Iterator fieldsIt;		GroupType type;		while(it.hasNext()) {			type = (GroupType)it.next();			fields=type.getFields();			fieldsIt=fields.iterator();			while(fieldsIt.hasNext()) {				field = (Field)fieldsIt.next();				if(field.getType().equals(FieldType.LIST)&& !"members".equals(field.getName())) {					if(canRead(s,field,g)) {						lists.add(field.getName());					}				}			}		}				return lists;	}