List<Event> eventList = null;
try {
eventList = jobDB.retrieveJobStatusAsEvent(eventId, null, null, null, null, 1, userId);
} catch (DatabaseException de) {
logger.error("Error retrieving events from database: " + de.getMessage());
throw new EventManagerException("Error retrieving events from database");
}
if (eventList.size() != 0) {
event = eventList.get(0);
}
return event;