if (SingleThreadModel.class.isAssignableFrom(servletInfo.getServletClass())) {
instanceStrategy = new SingleThreadModelPoolStrategy(servletInfo.getInstanceFactory(), servletInfo, servletContext);
} else {
instanceStrategy = new DefaultInstanceStrategy(servletInfo.getInstanceFactory(), servletInfo, servletContext);
}
FormEncodedDataDefinition formDataParser = new FormEncodedDataDefinition()
.setDefaultEncoding(servletContext.getDeployment().getDeploymentInfo().getDefaultEncoding());
if (servletInfo.getMultipartConfig() != null) {
//todo: fileSizeThreshold
MultipartConfigElement config = servletInfo.getMultipartConfig();
if (config.getMaxRequestSize() != -1) {