List<AdvisoryBugDetails> abugs = detail.getBugs();
log.debug("list of Bugs " + abugs);
if (abugs != null && abugs.size() > 0) {
for (AdvisoryBugDetails abug : abugs) {
AdvisoryBuglist abuglist = advManager.getAdvisoryBuglist(overlord, newAdv.getId(), abug
.getBugInfo());
if (abuglist == null) {
abuglist = new AdvisoryBuglist(newAdv, abug.getBugInfo());
entityManager.persist(abuglist);
entityManager.flush();
}
}
}