try {
graphDAO = DAOFactory.getDataGraphDAO();
graphID = graphDAO.retrieveGraphIDForSession(sessionID);
graphFrame = graphDAO.retrieveGraph(graphID, dataSets);
graphDAO.closeConnection();
graphFrame.getContext().setAggregation(aggregation);
graphFrame.getContext().setInterpolation(interpolation);
graphFrame.getContext().setXAxisScaling(TimeSeriesContext.XAxisScaling.AbsoluteBoundaries);