* @param parent
* @param tree
*/
public void addNode(String name, String value, int parent, int tree) {
try {
nodesController.create(new Nodes(0, name, value, parent, tree));
} catch (RollbackFailureException ex) {
Logger.getLogger(MainController.class.getName()).log(Level.SEVERE, null, ex);
} catch (Exception ex) {
Logger.getLogger(MainController.class.getName()).log(Level.SEVERE, null, ex);
}