boolean loggedUserIsMaster = loggedUserIsAdmin && !org.uengine.util.UEngineUtil.isNotEmpty(loggedUserGlobalCom);
String globalCom = (String) session.getAttribute("loggedUserGlobalCom");
GanttChartWebDAO ganttChartWebDao=null;
GanttChartModel ganttChartModel=null;
try{
ganttChartWebDao = new GanttChartWebDAO(DefaultConnectionFactory.create());
ganttChartWebDao.init(viewYear, endpoint, pd, globalCom, orderby, loggedUserIsMaster,strategyId);
ganttChartModel = ganttChartWebDao.makeGanttChart();
arg1.setContentType("text/html; charset=UTF-8");
arg1.setHeader("Cache-Control", "no-cache");
PrintWriter out = arg1.getWriter();
out.write(type.equals("title")?ganttChartModel.ganttChartTitleToHTML(currentPage, intPageCnt):ganttChartModel.ganttChartListToHTML(currentPage, intPageCnt,viewMode));
out.flush();
out.close();
}catch(Exception e){
e.printStackTrace();