Object o = BeanUtils.instantiateClass(editorClass);
Assert.isTrue((o instanceof Editor), "Editor class '"+
editorClass + "' was instantiated but is not an Editor");
Editor editor = (Editor)o;
editor.setDescriptor(this);
ApplicationEventMulticaster multicaster = getApplicationEventMulticaster();
if(editor instanceof ApplicationListener && multicaster != null){
multicaster.addApplicationListener((ApplicationListener)editor);
}
if(editorProperties != null){
BeanWrapper wrapper = new BeanWrapperImpl(editor);
wrapper.setPropertyValues(editorProperties);
}