}
servlet = ObjectUtils.cast(BeanUtils.instantiateClass(servletClass), Servlet.class);
Map<String, String> emptyMap = Collections.emptyMap();
Map<String,String> parameterMap = (initParameters != null ? initParameters : emptyMap);
IntegrationServletConfig config = newServletConfig(parameterMap);
if (servlet instanceof ApplicationContextAware) {
ApplicationContextAware awa = (ApplicationContextAware) servlet;
awa.setApplicationContext(applicationContext);
}