Improved ServetServlet.createComponent() to address issue #766.