if (AuthorizeManager.isAdmin(context)) {  request.setAttribute("admin_button", new Boolean(true)); }
    protected void doDSPost(Context context, HttpServletRequest request,            HttpServletResponse response) throws ServletException, IOException,            SQLException, AuthorizeException    {        /*         * For POST, we expect from the form:         *          * community_id DB ID if it was a 'create a new collection' button press         *          * OR         *          * collection_id DB ID of collection we're dealing with stage Stage         * we're at (from constants above)         */        // First, see if we have a multipart request        // (the 'basic info' page which might include uploading a logo)        String contentType = request.getContentType();        if ((contentType != null)                && (contentType.indexOf("multipart/form-data") != -1))        {            // This is a multipart request, so it's a file upload            processBasicInfo(context, request, response);            return;        }        int communityID = UIUtil.getIntParameter(request, "community_id");        if (communityID > -1)        {            // We have a community ID, "create new collection" button pressed            Community c = Community.find(context, communityID);            if (c == null)            {                log.warn(LogManager.getHeader(context, "integrity_error",                        UIUtil.getRequestLogInfo(request)));                JSPManager.showIntegrityError(request, response);                return;            }            // Create the collection            Collection newCollection = c.createCollection();            request.setAttribute("collection", newCollection);            JSPManager.showJSP(request, response,                    "/dspace-admin/wizard-questions.jsp");            context.complete();        }        else        {            // Collection already created, dealing with one of the wizard pages            int collectionID = UIUtil.getIntParameter(request, "collection_id");            int stage = UIUtil.getIntParameter(request, "stage");            // Get the collection            Collection collection = Collection.find(context, collectionID);            // Put it in request attributes, as most JSPs will need it            request.setAttribute("collection", collection);            if (collection == null)            {                log.warn(LogManager.getHeader(context, "integrity_error",                        UIUtil.getRequestLogInfo(request)));                JSPManager.showIntegrityError(request, response);                return;            }            // All pages will need this attribute            request.setAttribute("collection.id", String.valueOf(collection                    .getID()));            switch (stage)            {            case INITIAL_QUESTIONS:                processInitialQuestions(context, request, response, collection);                break;            case PERMISSIONS:                processPermissions(context, request, response, collection);                break;            case DEFAULT_ITEM:                processDefaultItem(context, request, response, collection);                break;            default:                log.warn(LogManager.getHeader(context, "integrity_error",                        UIUtil.getRequestLogInfo(request)));                JSPManager.showIntegrityError(request, response);            }        }    }