if(nodeModel != null)
nodeModel.addChild(node.getNodeModel(), index,true);
}
protected void insertToModel(TreeNode parent, TreeNode child, TreeNode refNode){
Node node[] = parent.getChildNodes();
for (int i = 0; i < node.length; i++) {
if(node[i].getId() == refNode.getId()){
NodeModel nodeModel = parent.getNodeModel();
if(nodeModel != null)
nodeModel.addChild(child.getNodeModel(), i, true);