class TilesContextVariableResolverFactory extends
        ReadOnlyVariableResolverFactory {

    @Override
    public VariableResolver createVariableResolver(String name) {
        VariableResolver resolver = null;
        PropertyDescriptor descriptor = requestBeanInfo.getMappedDescriptors(Request.class).get(name);
        if (descriptor != null) {
            resolver = new RequestVariableResolver(name, descriptor);
        } else {
            descriptor = requestBeanInfo.getMappedDescriptors(ApplicationContext.class).get(name);
            if (descriptor != null) {
                resolver = new ApplicationVariableResolver(name, descriptor);
            }
        }
        return resolver;
    }

    public  TilesContextVariableResolverFactory(TilesRequestContextHolder requestHolder);

}