class EmrDaoImpl implements EmrDao {

    protected SpotProvisioningSpecification getSpotSpecification(EmrClusterDefinitionSpotSpecification emrClusterDefinitionSpotSpecification)
    {
        SpotProvisioningSpecification spotProvisioningSpecification = null;

        if (emrClusterDefinitionSpotSpecification != null)
        {
            spotProvisioningSpecification = new SpotProvisioningSpecification();
            spotProvisioningSpecification.setTimeoutDurationMinutes(emrClusterDefinitionSpotSpecification.getTimeoutDurationMinutes());
            spotProvisioningSpecification.setTimeoutAction(emrClusterDefinitionSpotSpecification.getTimeoutAction());
            spotProvisioningSpecification.setBlockDurationMinutes(emrClusterDefinitionSpotSpecification.getBlockDurationMinutes());
            spotProvisioningSpecification.setAllocationStrategy(emrClusterDefinitionSpotSpecification.getAllocationStrategy());
        }

        return spotProvisioningSpecification;
    }

}