List groups = client.getUserGroups();  for (Iterator gIt = groups.iterator(); gIt.hasNext();)
}  reportsources = UserGroupPeer.doSelectAll(); for (Iterator gIt = reportsources.iterator(); gIt.hasNext();) { UserGroup group = (UserGroup) gIt.next(); createSearchReports( group ); }  reportsources = UserPeer.doSelectAll(); for (Iterator uIt = reportsources.iterator(); uIt.hasNext();) { User user = (User) uIt.next(); if (!user.getSearchQuerys().isEmpty())
    protected void doStart()    {        try        {            List clients = ClientPeer.doSelectAll();            for (Iterator it = clients.iterator(); it.hasNext();)            {                Client client = (Client) it.next();                createSearchReports( client );                List groups = client.getUserGroups();                for (Iterator gIt = groups.iterator(); gIt.hasNext();)                {                    UserGroup group = (UserGroup) gIt.next();                    createSearchReports( group );                    Criteria crit = new Criteria();                    crit.addJoin( UserPeer.USER_ID, UserGroupLnkPeer.USER_ID );                    crit.add( UserGroupLnkPeer.USER_GROUP_ID, group.getUserGroupId() );                    List users = UserPeer.doSelect( crit );                    for (Iterator uIt = users.iterator(); uIt.hasNext();)                    {                        User user = (User) uIt.next();                        createSearchReports( user );                    }                }            }        }        catch ( TorqueException e )        {            logger.error( e );        }    }