public void doFilter(ActionRequest request, ActionResponse response, FilterChain chain) throws IOException,
PortletException {
if (!wrapMultipartRequests && PortletFilterUtil.isMultipartRequest(request)) {
chain.doFilter(request, response);
} else {
chain.doFilter(new HttpServletActionRequestWrapper(request), new HttpServletActionResponseWrapper(response));
}
}