}
if(!StringUtils.isEmpty(getBean().getEnclosureURL())) try {
// Fetch MediaCast resource
log.debug("Checking MediaCast attributes");
MediacastResource mediacast = MediacastUtil.lookupResource(getBean().getEnclosureURL());
// set mediacast attributes
entry.putEntryAttribute("att_mediacast_url", mediacast.getUrl());
entry.putEntryAttribute("att_mediacast_type", mediacast.getContentType());
entry.putEntryAttribute("att_mediacast_length", ""+mediacast.getLength());
} catch (MediacastException ex) {
addMessage(getText(ex.getErrorKey()));
}