@Override
@Transactional(readOnly = false)
public Integer createNewJobStatus(String type, String initialStatus, String urlPath,
String urlText, Calendar date, ApplicationChannel channel) {
JobStatus jobStatus = new JobStatus();
Date now = new Date();
jobStatus.setType(type);
jobStatus.setStatus(initialStatus);
jobStatus.setStartDate(now);
jobStatus.setModifiedDate(now);
jobStatus.setUrlPath(urlPath);
jobStatus.setUrlText(urlText);
jobStatus.setScanDate(date);
jobStatus.setApplicationChannel(channel);
jobStatus.setOpen(true);
storeJobStatus(jobStatus);
return jobStatus.getId();
}