Criteria c = CategoryMapper.buildCategoryGroupCriteria(-1); List l = (List) gateway.retrieveListSTSData("CategoryGroup", c);
UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); Criteria c = CategoryMapper.buildCategoryGroupCriteria(-1, uc.getUserID()); List l = (List) gateway.retrieveListSTSData("CategoryGroup", c);
    public List retrieveCategoryGroups()        throws DSOutOfServiceException, DSAccessException    {        Criteria c = CategoryMapper.buildCategoryGroupCriteria(-1);        List l =             (List) gateway.retrieveListSTSData("CategoryGroup", c);        List result = new ArrayList();        UserCredentials uc = (UserCredentials)            registry.lookup(LookupNames.USER_CREDENTIALS);        if (l != null || l.size() > 0)            CategoryMapper.fillCategoryGroup(l, result, uc.getUserID());        return result;    }