} catch (Exception e) {
// jobName most likely did not match the expected format
throw new BadArgumentException("jobName","Does not match the format for job history items");
}
criteria.addFilterJobId(filterJobId);
criteria.clearPaging();//disable paging as the code assumes all the results will be returned.
List<ResourceOperationHistory> list = opsManager.findResourceOperationHistoriesByCriteria(caller,criteria);
if ((list != null && !list.isEmpty())) {
ResourceOperationHistory history = list.get(0);