class EmrDaoImpl implements EmrDao {

    protected List<EbsBlockDeviceConfig> getEbsBlockDeviceConfigs(List<EmrClusterDefinitionEbsBlockDeviceConfig> emrClusterDefinitionEbsBlockDeviceConfigs)
    {
        List<EbsBlockDeviceConfig> ebsBlockDeviceConfigs = null;

        if (!CollectionUtils.isEmpty(emrClusterDefinitionEbsBlockDeviceConfigs))
        {
            ebsBlockDeviceConfigs = new ArrayList<>();

            for (EmrClusterDefinitionEbsBlockDeviceConfig emrClusterDefinitionEbsBlockDeviceConfig : emrClusterDefinitionEbsBlockDeviceConfigs)
            {
                if (emrClusterDefinitionEbsBlockDeviceConfig != null)
                {
                    EbsBlockDeviceConfig ebsBlockDeviceConfig = new EbsBlockDeviceConfig();
                    ebsBlockDeviceConfig.setVolumeSpecification(getVolumeSpecification(emrClusterDefinitionEbsBlockDeviceConfig.getVolumeSpecification()));
                    ebsBlockDeviceConfig.setVolumesPerInstance(emrClusterDefinitionEbsBlockDeviceConfig.getVolumesPerInstance());

                    ebsBlockDeviceConfigs.add(ebsBlockDeviceConfig);
                }
            }
        }

        return ebsBlockDeviceConfigs;
    }

}