}
}else if (serviceType != null && serviceType.equalsIgnoreCase(DataSetConstants.DATASET_VERSION_RESTORE)) {
Integer dsID = getAttributeAsInteger(DataSetConstants.DS_ID);
Integer dsVersionNum = getAttributeAsInteger(DataSetConstants.VERSION_NUM);
try {
GuiGenericDataSet dsNewDetail= dsDao.restoreOlderDataSetVersion(dsID, dsVersionNum);
logger.debug("Dataset Version correctly Restored");
List temp = new ArrayList();
temp.add(dsNewDetail);
JSONArray itemJSON = (JSONArray) SerializerFactory.getSerializer("application/json").serialize(temp, locale);
JSONObject version = itemJSON.getJSONObject(0);