if(objHistoryEntries.size() == 0) {
logger.error(String.format("no history entry found for %1$s", strJobName));
throw new JobSchedulerException(String.format("no history entry found for %1$s", strJobName));
}
else {
HistoryEntry objHistoryEntry = objHistoryEntries.get(0);
String strErrorText = objHistoryEntry.getErrorText();
String strEndTime = objHistoryEntry.getEndTime();
Date objDateEndTime = SOSDate.getDate(strEndTime, SOSDate.dateTimeFormat);
boolean flgRunSuccessful = isEmpty(strErrorText);
boolean flgRunTooLate = objDateEndTime.before(objDateStartTime);
if(flgRunTooLate || !flgRunSuccessful ) {