class EmrDaoImpl implements EmrDao {

    protected OnDemandProvisioningSpecification getOnDemandSpecification(EmrClusterDefinitionOnDemandSpecification emrClusterDefinitionOnDemandSpecification)
    {
        OnDemandProvisioningSpecification onDemandProvisioningSpecification = null;

        if (emrClusterDefinitionOnDemandSpecification != null)
        {
            onDemandProvisioningSpecification = new OnDemandProvisioningSpecification();
            onDemandProvisioningSpecification.setAllocationStrategy(emrClusterDefinitionOnDemandSpecification.getAllocationStrategy());
        }

        return onDemandProvisioningSpecification;
    }

}