}
@Override
public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException {
PortletPreferences portletPreferences = request.getPreferences();
String contentType = request.getParameter("type");
if ("blog".equals(contentType)){
String urlRssBlog = portletPreferences.getValue(URL_RSS_BLOG, DEFAULT_URL);
String urlContentBlog = portletPreferences.getValue(URL_CONTENT_BLOG, DEFAULT_URL);
String pfxBlogAuthor = portletPreferences.getValue(PFX_BLOG_AUTHOR, "");
RssReaderBean gateInBlogRssReader = makeReaderBean(urlRssBlog, urlContentBlog, 2, pfxBlogAuthor);
request.setAttribute("blogRSSBean", gateInBlogRssReader);
PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/feedBlog.jsp");
prd.include(request, response);
} else if ("vimeo".equals(contentType)) {
String urlRssVimeo = portletPreferences.getValue(URL_RSS_VIMEO, DEFAULT_URL);
String urlContentVimeo = portletPreferences.getValue(URL_CONTENT_VIMEO, DEFAULT_URL);
RssReaderBean gateInVimeoRssReader = makeReaderBean(urlRssVimeo, urlContentVimeo, 2, null);
request.setAttribute("vimeoRSSBean", gateInVimeoRssReader);
PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/jsp/feedVimeo.jsp");