Item featureGroup = ItemHelper.convert(srcItemReader .getItemById((String) featureGroups.getRefIds().get(0))); Iterator featureIter = featureGroup.getCollection("features").getRefIds().iterator(); while (featureIter.hasNext()) { featureToDesign.put((String) featureIter.next(), tgtItem.getIdentifier()); }
    protected void createFeatureMap(Item srcItem, Item tgtItem)        throws ObjectStoreException {        ReferenceList featureGroups = srcItem.getCollection("featureGroups");        if (featureGroups == null || !isSingleElementCollection(featureGroups)) {            throw new IllegalArgumentException("PhysicalArrayDesign (" + srcItem.getIdentifier()                        + ") does not have exactly one featureGroup");        }        //ItemPrefetchDescriptor desc1        Item featureGroup = ItemHelper.convert(srcItemReader                  .getItemById((String) featureGroups.getRefIds().get(0)));        Iterator featureIter = featureGroup.getCollection("features").getRefIds().iterator();        while (featureIter.hasNext()) {            featureToDesign.put((String) featureIter.next(), tgtItem.getIdentifier());        }    }