if (!TreeModel.class.isAssignableFrom(modelClass)) {
throw new FormsException("Class '" + className + "' doesn't implement TreeModel.",
DomHelper.getLocationObject(treeModelElement));
}
JavaTreeModelDefinition definition = new JavaTreeModelDefinition();
LifecycleHelper.setupComponent(definition, getLogger(), ctx, manager, null);
definition.setModelClass(modelClass);
return definition;
}