<BUG>OnmsNode node = new OnmsNode();node.setDistPoller(dp);</BUG><CONTEXT>} catch (ForeignSourceRepositoryException e) {throw new RuntimeException("unable to retrieve foreign source '" + foreignSource + "'", e);}log().debug("creating database node");OnmsDistPoller dp = m_distPollerDao.get("localhost");<extra_id_0>node.setType("A");node.setForeignSource(foreignSource);</CONTEXT>
OnmsNode node = new OnmsNode(dp);