if (getFixedWorkPeriod() == null) {
if (getMeal().getMinimumMealBreakInterval() != Duration.ZERO) {
    public Duration checkMealDurationAccordingToRules(TimeInterval lunchBreak, boolean justification) {        if (definedMeal()) {            if (!justification                    && lunchBreak.getDuration().isShorterThan(getMeal().getMinimumMealBreakInterval())) {                return null;            } else {                // /////////remove in 2007                if (getFixedWorkPeriod() == null) {                    return getMeal().calculateMealDiscount(                            getMeal().getMealBreak().overlap(lunchBreak).toDuration());                }                // /////////////////////////                return getMeal().calculateMealDiscount(lunchBreak.getDuration());            }        }        return Duration.ZERO;    }