public static Collection<String> getElementRefId(final DefinitionsElement element) { _LOG_.debug("OVAL ID: " + element.getOvalId()); Set<String> ids = new HashSet<String>(); Collection<ElementRef> ref_list = element.ovalGetElementRef(); for (ElementRef e : ref_list) { if (e == null) { continue; } String id = e.ovalGetRefId(); if (id != null && id.length() > 0) { ids.add(id); } } _LOG_.debug("referencing OVAL IDs: " + String.valueOf(ids)); return ids; }