public TilesRequestContext createRequestContext(TilesApplicationContext context,
PageContext pageContext) {
ServletContext servletContext = getServletContext(context);
if (servletContext != null) {
return new JspTilesRequestContext(servletContext, pageContext);
}
throw new IllegalArgumentException("The context/pageContext combination is not supported.");
}