/**
   * Method declaration
   *
   * @param userId
   * @param node
   * @see
   */
  public void addFavoritNode(String userId, NodePK node) {
    SilverTrace.info(
        "favorit",
        "FavoritBmEJB.addFavoritNode",
        "root.MSG_GEN_ENTER_METHOD",
        "userId = " + userId + ", node = " + node.toString());
    Connection con = null;

    try {
      con = getConnection();
      NodeActorLinkDAO.add(con, rootTableName, userId, node);
    } catch (Exception e) {
      throw new FavoritRuntimeException("favorit.CANNOT_ADD_FAVORIT", e);
    } finally {
      freeConnection(con);
    }
  }
  /**
   * Method declaration
   *
   * @param node
   * @param path
   * @see
   */
  public void removeFavoritByNodePath(NodePK node, String path) {
    SilverTrace.info(
        "favorit",
        "FavoritBmEJB.removeFavoritByNodePath",
        "root.MSG_GEN_ENTER_METHOD",
        "node = " + node.toString() + ", path = " + path);
    Connection con = null;

    try {
      con = getConnection();
      NodeActorLinkDAO.removeByNodePath(con, rootTableName, node, path);
    } catch (Exception e) {
      throw new FavoritRuntimeException("favorit.CANNOT_REMOVE_FAVORIT_BY_NODE", e);
    } finally {
      freeConnection(con);
    }
  }