result.setDescription(description);
            return result;
        }
        private void setConstraintsFor(final SchedulingMode mode) {
            initDate.setConstraint(new Constraint() {
                @Override
                public void validate(Component comp, Object value)
                        throws WrongValueException {
                    if (value == null) {
                        if (mode == SchedulingMode.FORWARD) {
                            throw new WrongValueException(
                                    comp,
                                    _("Starting date cannot be empty in forward mode"));
                        }
                        if (orderModel
                                .isAnyTaskWithConstraint(PositionConstraintType.AS_SOON_AS_POSSIBLE)) {
                            throw new WrongValueException(comp,
                                    _("Starting date cannot be empty because there is a task with constraint \"as soon as possible\""));
                        }
                    }
                }
            });
            deadline.setConstraint(new Constraint() {
                @Override
                public void validate(Component comp, Object value)
                        throws WrongValueException {
                    if (value == null) {