} else {
modelFastMap = new FastMap<TreeModel>();
useKeyProvider = true;
}
}
TreeModel wrapper = new BaseTreeModel();
wrapper.set("id", String.valueOf(counter++));
if (useKeyProvider) {
modelFastMap.put(getKey(model), wrapper);
} else {
modelMap.put(model, wrapper);
}
wrapperMap.put(wrapper.<String> get("id"), model);
return wrapper;
}