if(AuthorizeManager.authorizeActionBoolean(context, community, Constants.WRITE))
if(community.canEditBoolean())
    private void communityHome(Context context,        HttpServletRequest request,        HttpServletResponse response,        Community community)        throws ServletException, IOException, SQLException    {        // Handle click on a browse or search button        if (!handleButton(request, response, community.getHandle()))        {            // No button pressed, display community home page            log.info(LogManager.getHeader(context, "view_community",                "community_id=" + community.getID()));            // Get the collections within the community            Collection[] collections = community.getCollections();            // get any subcommunities of the community            Community[] subcommunities = community.getSubcommunities();            // Find the 5 last submitted items            BrowseScope scope = new BrowseScope(context);            scope.setScope(community);            scope.setTotal(5);            List items = Browse.getLastSubmitted(scope);            // Get titles and URLs to item pages            String[] itemTitles = getItemTitles(items);            String[] itemLinks = getItemURLs(context, items);            // can they admin this collection?            if(AuthorizeManager.authorizeActionBoolean(context, community, Constants.WRITE))            {                // set a variable to create an edit button                request.setAttribute("admin_button", new Boolean(true));            }            // Forward to community home page            request.setAttribute("last.submitted.titles", itemTitles);            request.setAttribute("last.submitted.urls", itemLinks);            request.setAttribute("community", community);            request.setAttribute("collections", collections);            request.setAttribute("subcommunities", subcommunities);            JSPManager.showJSP(request, response, "/community-home.jsp");        }    }