@SuppressWarnings("unchecked")
	@Transactional
	public List<Merchant> addMerchant(Merchant domainMerchant) throws Exception 
	{

		List<Merchant> lstMerchants = null;
		try
		{

			logger.info("domainMerchant Obj---------------->"+domainMerchant);
			if(sessionFactory.getCurrentSession() != null)
			{
				sessionFactory.getCurrentSession().saveOrUpdate(domainMerchant);
				Session session = sessionFactory.openSession();
				logger.info("successfully inserted");
				Criteria cr = session.createCriteria(Merchant.class);
				lstMerchants = cr.list();
				System.out.println("merchant list from Dao----------->"+lstMerchants.size());
				if((lstMerchants.size()) != 0){
					logger.info("Merchants list from Dao------------->"+lstMerchants);
					for (Merchant merchantObj : lstMerchants) {
						logger.info(merchantObj.getiMerchantId() + " , "
								+ merchantObj.getsName()+ ", "
								+ merchantObj.getiMerchantCode());
					}

				}

			}
		}
		catch(Exception e)
		{
			e.printStackTrace();
			logger.error("Exception occured in addMerchant()--->"+e.getMessage());
			throw new Exception("Exception occured in addMerchant()--->"+e.getMessage());

		}
		return lstMerchants;
	}