MerchantSessionHibernateDAO mercDAO = new MerchantSessionHibernateDAO();
mercDAO.setSession(session);
MerchantSession viewMS;
try {
Transaction tx = session.beginTransaction();
viewMS = mercDAO.findById(new Integer(commandMatcher.group(1)), false);
tx.commit();
if (COMMAND_MERCHANT_VIEWSESSION.equals(commandName))
reportReceiptSummary(viewMS, null);
else if (COMMAND_MERCHANT_VIEWSESSION_DETAILS.equals(commandName))
reportReceiptDetails(viewMS, null);