public WOComponent queryAction() {
WOComponent nextPage = null;
// If we have a validation delegate, validate the query values before actually performing the query.
ERDQueryValidationDelegate queryValidationDelegate = queryValidationDelegate();
if (queryValidationDelegate != null) {
clearValidationFailed();
setErrorMessage(null);
try {
queryValidationDelegate.validateQuery(this);
} catch (NSValidation.ValidationException ex) {
setErrorMessage(ERXLocalizer.currentLocalizer().localizedTemplateStringForKeyWithObject("CouldNotQuery", ex));
validationFailedWithException(ex, null, "queryExceptionKey");
}
if (hasErrors()) {