Added Portlet Support

Just adapted from the Servlet