return node;
}
private Graph createGraph(Node node, String name, String description, String timeframe, String mbean, String dataname1, String xlabel, String ylabel, String data1operation, String operation,
String data2operation, String dataname2, String showArchive) throws Exception {
Graph graph = new Graph();
graph.setNode(node);
graph.setGraphName1(name);
graph.setDescription(description);
graph.setXlabel(xlabel);
graph.setYlabel(ylabel);
graph.setTimeFrame(Integer.parseInt(timeframe));
graph.setMBeanName(mbean);
graph.setDataName1(dataname1);
graph.setData1operation(data1operation.charAt(0));
graph.setOperation(operation);
graph.setShowArchive(showArchive != null && showArchive.equals("on"));
graph.setDataName2(dataname2);
graph.setData2operation(data2operation == null ? 'A' : data2operation.charAt(0));
return graph;
}