List groups = null;
try {
groups = delegator.findList(org.ofbiz.shark.SharkConstants.SharkGroup, null, null, null, null, false);
} catch (GenericEntityException e) {
Debug.logError(e, module);
throw new RootException(e);
}
if (UtilValidate.isNotEmpty(groups)) {
Iterator i = groups.iterator();
while (i.hasNext()) {
GenericValue v = (GenericValue) i.next();