if (point.getIntervalAttributes().contains(DomainConstants.WORKED_ATTRIBUTES) && point.getPoint().isAfter(mealInterval.getStartTime())) {
if (point.getIntervalAttributes().contains(DomainConstants.WORKED_ATTRIBUTES)  && mealInterval[0].isBefore(point)) {
    public TimePoint findEndLunchBreak(TimeInterval scheduleMealBreakInterval, TimePoint startMealBreakPoint) {        List<TimePoint> workedPointsList = getAllAttributePoints(DomainConstants.WORKED_ATTRIBUTES);        TimeInterval mealInterval = findIntervalByAttribute(AttributeType.MEAL);        // encontrar ponto final        for  (TimePoint point: workedPointsList) {            // ponto abre worked e e' depois do inicio da refeicao            if (point.getIntervalAttributes().contains(DomainConstants.WORKED_ATTRIBUTES) && point.getPoint().isAfter(mealInterval.getStartTime())) {                 // && scheduleMealBreakInterval.contains(point.getPoint(), false)) {                // e' este ponto no caso de ser depois de startMealBreakPoint                if ((startMealBreakPoint != null) && point.getPoint().isAfter(startMealBreakPoint.getPoint())) {                    return point;                }            }        }        return null;    }