// now create detail composites from the resource list
List<ResourceOperationDetailsComposite> resourceComposites = new ArrayList<ResourceOperationDetailsComposite>();
getUserWithSession(user, true); // refresh our session to reset the timeout clock
for (Resource nextResourceToOperateOn : resourcesToOperateOn) {
// create the non-quartz schedule entity for the given job execution context data
ResourceOperationSchedule resourceSchedule = createScheduleForResource(schedule, jobDetail.getGroup(),
user, nextResourceToOperateOn);
// create the resource-level history entity for the newly created non-quartz schedule entity
// this method also does the persisting
ResourceOperationHistory resourceHistory = createOperationHistory(resourceSchedule.getJobName(),
resourceSchedule.getJobGroup(), resourceSchedule, groupHistory, operationManager);
// add all three elements to the composite, which will be iterated over below for the bulk of the work
resourceComposites.add(new ResourceOperationDetailsComposite(nextResourceToOperateOn, resourceHistory,
resourceSchedule));
}