Iterator i = reporterLocs.iterator(); while (i.hasNext()) { Item rl = (Item) i.next(); String designId = (String) featureToDesign.get(rlToFeature.get(rl.getIdentifier())); Reference designRef = new Reference(); designRef.setName("design"); designRef.setRefId(designId); rl.addReference(designRef); results.add(rl);
if (reporterLocs != null && featureToDesign != null && rlToFeature != null) { for (Iterator i = reporterLocs.iterator(); i.hasNext();) { Item rl = (Item) i.next(); String designId = (String) featureToDesign.get(rlToFeature.get(rl.getIdentifier())); Reference designRef = new Reference(); if (designId != null) { designRef.setName("design"); designRef.setRefId(designId); rl.addReference(designRef); results.add(rl); } }
    protected Set processReporterLocs() {        Set results = new HashSet();        Iterator i = reporterLocs.iterator();        while (i.hasNext()) {            Item rl = (Item) i.next();            String designId = (String) featureToDesign.get(rlToFeature.get(rl.getIdentifier()));            Reference designRef = new Reference();            designRef.setName("design");            designRef.setRefId(designId);            rl.addReference(designRef);            results.add(rl);        }        return results;    }