code: private boolean costRateTableWriteRequired(CostRateTableEntry entry, Date from)
     {
        boolean fromDate = (DateHelper.compare(from, DateHelper.FIRST_DATE) > 0);
        boolean toDate = (DateHelper.compare(entry.getEndDate(), DateHelper.LAST_DATE) > 0);
        boolean costPerUse = (NumberHelper.getDouble(entry.getCostPerUse()) != 0);
        boolean overtimeRate = (entry.getOvertimeRate() != null && entry.getOvertimeRate().getAmount() != 0);
        boolean standardRate = (entry.getStandardRate() != null && entry.getStandardRate().getAmount() != 0);
        return (fromDate || toDate || costPerUse || overtimeRate || standardRate);
     }
docs: This method determines whether the cost rate table should be written.
  A default cost rate table should not be written to the file.
  
  @param entry cost rate table entry
  @param from from date
  @return boolean flag