@Override
 public void reconcileIsis(int nodeId, Date now) {
   IsIsElement element = m_isisElementDao.findByNodeId(nodeId);
   if (element != null && element.getIsisNodeLastPollTime().getTime() < now.getTime()) {
     m_isisElementDao.delete(element);
     m_isisElementDao.flush();
   }
   m_isisLinkDao.deleteByNodeIdOlderThen(nodeId, now);
   m_isisLinkDao.flush();
 }
  @Override
  @Transactional
  public void store(int nodeId, IsIsElement element) {
    if (element == null) return;
    final OnmsNode node = m_nodeDao.get(nodeId);
    if (node == null) return;

    IsIsElement dbelement = node.getIsisElement();
    if (dbelement != null) {
      dbelement.merge(element);
      node.setIsisElement(dbelement);
    } else {
      element.setNode(node);
      element.setIsisNodeLastPollTime(element.getIsisNodeCreateTime());
      node.setIsisElement(element);
    }

    m_nodeDao.saveOrUpdate(node);
    m_nodeDao.flush();
  }