public function isFormValid ($form, $throws=false)
    {
        if (!$form->isValid()) {
            if ($throws) {
                throw new ValidationException("Data validation failure");
            }
            return false;
        } else {
            return true;
        }
    }