protected boolean validate() {
MessagesComponentHandler messagesHandler = MessagesComponentHandler.lookup();
try {
if (titleMap == null || titleMap.isEmpty()) {
addFieldError(new FactoryURL(getBeanName(), "title"), null, title);
messagesHandler.addError("ui.alert.sectionErrors.title");
}
if (!isValidURL(url)) {
addFieldError(new FactoryURL(getBeanName(), "url"), null, url);
messagesHandler.addError("ui.alert.sectionErrors.url");
}
return getFieldErrors().isEmpty();
} catch (Exception e) {