public Order getOrder() {
return getView().flush();
}
public Boolean isOrderValid() {
Order order = getView().flush();
Validator validator = Validation.buildDefaultValidatorFactory().getValidator();
Set<ConstraintViolation<Order>> violations = validator.validate(order);
getView().setConstraintViolations(new ArrayList<ConstraintViolation<?>>(violations));
boolean isCreditCardValid = creditCardPresenter.validate();