protected View createView() {
Assert.state(viewClass != null, "View class to instantiate is not set");
Object o = BeanUtils.instantiateClass(viewClass);
Assert.isTrue((o instanceof View), "View class '" + viewClass
+ "' was instantiated, but instance is not a View!");
View view = (View) o;
view.setDescriptor(this);
if (viewProperties != null) {
BeanWrapper wrapper = new BeanWrapperImpl(view);
wrapper.setPropertyValues(viewProperties);
}