Collection[] collections = item.getCollections();
Collection[] collections = {wsItem.getCollection()};
    private void showMainPage(Context c,         HttpServletRequest request, HttpServletResponse response)        throws ServletException, IOException, SQLException, AuthorizeException    {        // get the value from the request        int wsItemID = UIUtil.getIntParameter(request,"workspace_id");                // get the workspace item, item and collections from the request value        WorkspaceItem wsItem = WorkspaceItem.find(c, wsItemID);        Item item = wsItem.getItem();        Collection[] collections = item.getCollections();                // Ensure the user has authorisation        AuthorizeManager.authorizeAction(c, item, Constants.READ);                log.info(LogManager.getHeader(c,             "View Workspace Item Metadata",             "workspace_item_id="+wsItemID));                // Full or simple display?        boolean displayAll = false;        String button = UIUtil.getSubmitButton(request, "submit_simple");        if (button.equalsIgnoreCase("submit_full"))        {            displayAll = true;        }                // FIXME: we need to synchronise with the handle servlet to use the        // display item JSP for both handled and un-handled items        // Set attributes and display        // request.setAttribute("wsItem", wsItem);        request.setAttribute("display.all", new Boolean(displayAll));        request.setAttribute("item", item);        request.setAttribute("collections", collections);        request.setAttribute("workspace_id", new Integer(wsItem.getID()));                JSPManager.showJSP(request, response, "/display-item.jsp");    }