private TreeModel getModel(PhaseId phaseId) {
if (phaseId == PhaseId.RENDER_RESPONSE || model == null) {
Object value = getValue();
if (value == null) {
model = new ListTreeModel();
}
else if (value instanceof TreeModel) {
model = (TreeModel) value;
}
else {