* @param showRoot comes from the showRoot attribute.
*/
protected void createTreeDataModel(final Object value, final boolean showRoot) {
// TODO: use a factory
if (value instanceof TreeNode) {
dataModel = new TreeNodeDataModel((TreeNode) value, showRoot, getExpandedState());
}
}