class DomainToResourceMapper {

    public static JobConfigurations map(final Collection<org.tuxdevelop.spring.batch.lightmin.domain.JobConfiguration>
                                                jobConfigurations) {
        final JobConfigurations response = new JobConfigurations();
        if (jobConfigurations != null && !jobConfigurations.isEmpty()) {
            for (final org.tuxdevelop.spring.batch.lightmin.domain.JobConfiguration jobConfiguration : jobConfigurations) {
                final JobConfiguration jobConfigurationReponse = map(jobConfiguration);
                response.getJobConfigurations().add(jobConfigurationReponse);
            }
        }
        return response;
    }

    private  DomainToResourceMapper();

}