code:     private void updateGraphFromRequest(ActionRequest actionRequest, Graph graph) {
          graph.setGraphName1(actionRequest.getParameter("name"));
          graph.setDescription(actionRequest.getParameter("description"));
          graph.setXlabel(actionRequest.getParameter("xlabel"));
          graph.setYlabel(actionRequest.getParameter("ylabel"));
          graph.setTimeFrame(Integer.parseInt(actionRequest.getParameter("timeframe")));
          graph.setMBeanName(actionRequest.getParameter("mbean"));
          graph.setDataName1(actionRequest.getParameter("dataname1"));
          graph.setData1operation(actionRequest.getParameter("data1operation").charAt(0));
  
          graph.setOperation(actionRequest.getParameter("operation"));
          if (graph.getOperation().equals("other")) {
              graph.setOperation(actionRequest.getParameter("othermath"));
          }
  
          graph.setShowArchive(actionRequest.getParameter("showArchive") != null
                  && actionRequest.getParameter("showArchive").equals("on"));
  
          graph.setDataName2(actionRequest.getParameter("dataname2"));
          graph.setData2operation(actionRequest.getParameter("data2operation") == null? 'A': actionRequest.getParameter("data2operation").charAt(0));
      }
  
  