manager.flush();
}
private void saveNodeKF(TreeNode node, ClassificationFarm parentFarm) throws ClipsServerException {
ClassificationFarm farm = new ClassificationFarm();
farm.setTitle(node.getTitle());
farm.setParentFarm(parentFarm);
manager.persist(farm);
ArrayList<TreeNode> chidren = node.getChidren();
for (int i = 0; i < chidren.size(); i++) {
TreeNode treeNode = chidren.get(i);
saveNodeKF(treeNode, farm);