protected IMultipartDecoder obtainMultipartDecoder(
ApplicationServlet servlet,
HttpServletRequest request)
throws IOException
{
IApplicationSpecification spec = servlet.getApplicationSpecification();
if (spec.checkExtension(Tapestry.MULTIPART_DECODER_EXTENSION_NAME))
return (IMultipartDecoder) spec.getExtension(
Tapestry.MULTIPART_DECODER_EXTENSION_NAME,
IMultipartDecoder.class);
return DefaultMultipartDecoder.getSharedInstance();
}