/**
  * Obtains instance of report group by {@link ResultSetWrapper}.
  *
  * @param rsw
  * @return
  */
 public static ReportGroupBean getBeanByResultSetWrapper(ResultSetWrapper rsw) {
   ReportGroupBean reportGroupBean = new ReportGroupBean();
   try {
     reportGroupBean.setReportGroupId(rsw.getInt("reportgroupid"));
     reportGroupBean.setTitle(rsw.getString("title"));
     reportGroupBean.setDescription(rsw.getString("description"));
     reportGroupBean.setInputParams(rsw.getString("inputparams"));
     reportGroupBean.setGroupType(rsw.getInt("grouptype"));
     reportGroupBean.setMenuOrder(rsw.getDouble("menuorder"));
     reportGroupBean.setCategoryId(rsw.getInt("categoryid"));
   } catch (Exception e) {
     CyberoamLogger.repLog.error(
         "Exception->getBeanByResultSetWrapper()->ReportGroupBean: " + e, e);
   }
   return reportGroupBean;
 }