validUrl = true;
} else {
//validated feed url
String url = feedUrl.getValue();
String type = feed.getResourceableTypeName();
ValidatedURL validatedUrl = FeedManager.getInstance().validateFeedUrl(url, type);
if(!validatedUrl.getUrl().equals(url)) {
feedUrl.setValue(validatedUrl.getUrl());
}
switch(validatedUrl.getState()) {
case VALID:
feedUrl.clearError();
validUrl = true;
break;
case NO_ENCLOSURE: