class EmrDaoImpl implements EmrDao {

    protected InstanceFleetProvisioningSpecifications getLaunchSpecifications(EmrClusterDefinitionLaunchSpecifications emrClusterDefinitionLaunchSpecifications)
    {
        InstanceFleetProvisioningSpecifications instanceFleetProvisioningSpecifications = null;

        if (emrClusterDefinitionLaunchSpecifications != null)
        {
            instanceFleetProvisioningSpecifications = new InstanceFleetProvisioningSpecifications();
            instanceFleetProvisioningSpecifications.setSpotSpecification(getSpotSpecification(emrClusterDefinitionLaunchSpecifications.getSpotSpecification()));
            instanceFleetProvisioningSpecifications
                .setOnDemandSpecification(getOnDemandSpecification(emrClusterDefinitionLaunchSpecifications.getOnDemandSpecification()));
        }

        return instanceFleetProvisioningSpecifications;
    }

}