TimePoint endMealBreakPoint = findEndLunchBreak(scheduleMealBreakInterval);  if ((startMealBreakPoint != null) && (endMealBreakPoint != null)) { return new TimeInterval(startMealBreakPoint.getPoint(), endMealBreakPoint.getPoint()); } else { System.out.println("nao ha fim de ref");
TimePoint endMealBreakPoint = findEndLunchBreak(scheduleMealBreakInterval, startMealBreakPoint); if (startMealBreakPoint != null) { if (endMealBreakPoint != null) { return new TimeInterval(startMealBreakPoint.getPoint(), endMealBreakPoint.getPoint()); } else {  return calculateBreakPeriod(); } } else {
    public TimeInterval calculateMealBreakInterval(TimeInterval scheduleMealBreakInterval) {        TimePoint startMealBreakPoint = findStartLunchBreak(scheduleMealBreakInterval);        TimePoint endMealBreakPoint = findEndLunchBreak(scheduleMealBreakInterval);        // TODO verificar isto com a Carla e a Aida        if ((startMealBreakPoint != null) && (endMealBreakPoint != null)) { // ha refeicao            return new TimeInterval(startMealBreakPoint.getPoint(), endMealBreakPoint.getPoint());        } else { // nao ha fim de refeicao, employee bazou ou nao fez refeicao            System.out.println("nao ha fim de ref");            // calcula a duracao do periodo em q o funcionario saiu para o almoco e o fim do almoco definido no horario.            return calculateBreakPeriod();            //return null;        }    }    