class EmrHelper extends AwsHelper {

    public List<EmrClusterInstanceFleet> buildEmrClusterInstanceFleetFromAwsResult(ListInstanceFleetsResult awsInstanceFleetsResult)
    {
        List<EmrClusterInstanceFleet> emrInstanceFleets = null;

        if (awsInstanceFleetsResult != null && !CollectionUtils.isEmpty(awsInstanceFleetsResult.getInstanceFleets()))
        {
            emrInstanceFleets = new ArrayList<>();

            for (InstanceFleet awsInstanceFleet : awsInstanceFleetsResult.getInstanceFleets())
            {
                if (awsInstanceFleet != null)
                {
                    EmrClusterInstanceFleet emrInstanceFleet = new EmrClusterInstanceFleet();
                    emrInstanceFleet.setId(awsInstanceFleet.getId());
                    emrInstanceFleet.setName(awsInstanceFleet.getName());
                    emrInstanceFleet.setInstanceFleetType(awsInstanceFleet.getInstanceFleetType());
                    emrInstanceFleet.setTargetOnDemandCapacity(awsInstanceFleet.getTargetOnDemandCapacity());
                    emrInstanceFleet.setTargetSpotCapacity(awsInstanceFleet.getTargetSpotCapacity());
                    emrInstanceFleet.setProvisionedOnDemandCapacity(awsInstanceFleet.getProvisionedOnDemandCapacity());
                    emrInstanceFleet.setProvisionedSpotCapacity(awsInstanceFleet.getProvisionedSpotCapacity());
                    emrInstanceFleet.setInstanceTypeSpecifications(getInstanceTypeSpecifications(awsInstanceFleet.getInstanceTypeSpecifications()));
                    emrInstanceFleet.setLaunchSpecifications(getLaunchSpecifications(awsInstanceFleet.getLaunchSpecifications()));
                    emrInstanceFleet.setInstanceFleetStatus(getEmrClusterInstanceFleetStatus(awsInstanceFleet.getStatus()));
                    emrInstanceFleets.add(emrInstanceFleet);
                }
            }
        }

        return emrInstanceFleets;
    }

}