request.setAttribute("mydspace.user", context.getCurrentUser());
request.setAttribute("mydspace.user", currentUser);
    private void showMainPage(Context context, HttpServletRequest request,            HttpServletResponse response) throws ServletException, IOException,            SQLException, AuthorizeException    {        log.info(LogManager.getHeader(context, "view_mydspace", ""));        // FIXME: WorkflowManager should return arrays        List ownedList = WorkflowManager.getOwnedTasks(context, context                .getCurrentUser());        WorkflowItem[] owned = new WorkflowItem[ownedList.size()];        owned = (WorkflowItem[]) ownedList.toArray(owned);        // Pooled workflow items        List pooledList = WorkflowManager.getPooledTasks(context, context                .getCurrentUser());        WorkflowItem[] pooled = new WorkflowItem[pooledList.size()];        pooled = (WorkflowItem[]) pooledList.toArray(pooled);        // User's WorkflowItems        WorkflowItem[] workflowItems = WorkflowItem.findByEPerson(context,                context.getCurrentUser());        // User's PersonalWorkspace        WorkspaceItem[] workspaceItems = WorkspaceItem.findByEPerson(context,                context.getCurrentUser());        // User's authorization groups        Group[] memberships = context.getCurrentUser().getGroupMemberships();        SupervisedItem[] supervisedItems = SupervisedItem.findbyEPerson(                context, context.getCurrentUser());        // Set attributes        request.setAttribute("mydspace.user", context.getCurrentUser());        request.setAttribute("workspace.items", workspaceItems);        request.setAttribute("workflow.items", workflowItems);        request.setAttribute("workflow.owned", owned);        request.setAttribute("workflow.pooled", pooled);        request.setAttribute("group.memberships", memberships);        request.setAttribute("supervised.items", supervisedItems);        // Forward to main mydspace page        JSPManager.showJSP(request, response, "/mydspace/main.jsp");    }