@Override
 public void set(RssElement element, String value) {
   try {
     element.setLink(new URI(value));
   } catch (URISyntaxException e) {
   }
 }
 @Override
 public void set(RssElement element, Attributes attributes) {
   final int height =
       MediaAttributes.intValue(attributes, MEDIA_THUMBNAIL_HEIGHT, DEFAULT_DIMENSION);
   final int width =
       MediaAttributes.intValue(attributes, MEDIA_THUMBNAIL_WIDTH, DEFAULT_DIMENSION);
   final String url = MediaAttributes.stringValue(attributes, MEDIA_THUMBNAIL_URL);
   if (url == null) {
     return;
   }
   try {
     element.addMediaThumbnail(new MediaThumbnail(new URI(url), height, width));
   } catch (URISyntaxException e) {
     e.printStackTrace();
   }
 }
 @Override
 public void set(RssElement element, Attributes attributes) {
   final String url = MediaAttributes.stringValue(attributes, URL);
   final Integer length = MediaAttributes.intValue(attributes, LENGTH);
   final String mimeType = MediaAttributes.stringValue(attributes, MIMETYPE);
   if (url == null || length == null || mimeType == null) {
     return;
   }
   MediaEnclosure enclosure = null;
   try {
     enclosure = new MediaEnclosure(new URI(url), length, mimeType);
   } catch (URISyntaxException e) {
     e.printStackTrace();
   }
   element.setMediaEnclosure(enclosure);
 }
 @Override
 public void set(RssElement element, String value) {
   element.setTtl(value);
 }
 @Override
 public void set(RssElement element, String value) {
   element.setLastBuildDate(value);
 }
 @Override
 public void set(RssElement element, String value) {
   element.addCategory(value);
 }
 @Override
 public void set(RssElement element, String value) {
   element.setDescription(value);
 }
 @Override
 public void set(RssElement element, String value) {
   element.setSubtitle(value);
 }