if (view == null) {
// no specific content requested - show the destinations list
view = "viewDestinations";
}
PortletRenderer renderer = (PortletRenderer) renderers.get(view);
if (renderer == null) {
throw new PortletException("Invalid view parameter specified: "
+ view);
}
String include = renderer.render(renderRequest, renderResponse);
if (include != null) {
PortletRequestDispatcher requestDispatcher = context
.getRequestDispatcher(include);
requestDispatcher.include(renderRequest, renderResponse);
}