boolean transactionSucceeded = false;
try {
// start the transaction
beginTransaction();
LogEntryCollection logEntryCollection = new LogEntryCollection();
logEntryCollection.setLogCount(
logsDAO.getLogsCount(resourcePath, action, userName, from, to, recentFirst));
logEntryCollection.setDataAccessManager(dataAccessManager);
logEntryCollection.setResourcePath(resourcePath);
logEntryCollection.setAction(action);
logEntryCollection.setUserName(userName);
logEntryCollection.setFrom(from);
logEntryCollection.setTo(to);
logEntryCollection.setRecentFirst(recentFirst);
// transaction succeeded
transactionSucceeded = true;
return logEntryCollection;