if ((browseType == Browse.SUBJECTS_BROWSE) || (browseType == Browse.ITEMS_BY_SUBJECT_BROWSE)) { if (isCommunity) { return "CommunityItemsBySubject"; }  if (isCollection) { return "CollectionItemsBySubject"; }  return "ItemsBySubject"; }
    public static String getTable(BrowseScope scope)    {        int browseType = scope.getBrowseType();        boolean isCommunity = scope.isCommunityScope();        boolean isCollection = scope.isCollectionScope();        if ((browseType == Browse.AUTHORS_BROWSE)                || (browseType == Browse.ITEMS_BY_AUTHOR_BROWSE))        {            if (isCommunity)            {                return "CommunityItemsByAuthor";            }            if (isCollection)            {                return "CollectionItemsByAuthor";            }            return "ItemsByAuthor";        }        if (browseType == Browse.ITEMS_BY_TITLE_BROWSE)        {            if (isCommunity)            {                return "CommunityItemsByTitle";            }            if (isCollection)            {                return "CollectionItemsByTitle";            }            return "ItemsByTitle";        }        if (browseType == Browse.ITEMS_BY_DATE_BROWSE)        {            if (isCommunity)            {                return "CommunityItemsByDate";            }            if (isCollection)            {                return "CollectionItemsByDate";            }            return "ItemsByDate";        }        throw new IllegalArgumentException(                "No table for browse and scope combination");    }