class BatchToResourceMapper {

    public static List<JobInstance> mapInstances(final Collection<org.springframework.batch.core.JobInstance>
                                                         jobInstances) {
        final List<JobInstance> response = new LinkedList<>();
        for (final org.springframework.batch.core.JobInstance jobInstance : jobInstances) {
            response.add(map(jobInstance));
        }
        return response;
    }

    private  BatchToResourceMapper();

}