@Override
public void saveNode(Tree tree,Node node) {
if( node == null || tree == null )
throw new ApplicationException("树和结点都不能为空!");
Tree db_tree = this.get(tree);
if( db_tree == null )
throw new ApplicationException("树已不存在!");
if(node.getParent()==null ||
StringUtil.clean(node.getParent().getIdentity())==null ){
node.setParent( db_tree.getRoot() );
}else{
Node parent = nodeDao.read(node.getParent());
if( parent == null )
throw new ApplicationException("父结点(id="
+node.getParent().getIdentity()+")已不存在!");