String id = null;
String itemId = null; String identifierAttribute = null; Set identifierSet = new HashSet();
    protected Set processBioEntity2MAEResult() {        Set results = new HashSet();        feature2Maer = new HashMap();        feature2Maer = createFeature2MaerMap(maer2Feature, maerSet);        String s = null;        String id = null;        for (Iterator i = bioEntitySet.iterator(); i.hasNext();) {            Item bioEntity = (Item) i.next();            // add collection microArrayExperimentalResult            List maerIds = new ArrayList();            s = (String) bioEntity2Feature.get((String) bioEntity.getIdentifier());            LOG.debug("featureId " + s + " bioEntityId " + bioEntity.getIdentifier());            if (s != null) {                StringTokenizer st = new StringTokenizer(s);                String multiMaer = null;                while (st.hasMoreTokens()) {                    multiMaer = (String) feature2Maer.get(st.nextToken());                    if (multiMaer != null) {                        StringTokenizer token = new StringTokenizer(multiMaer);                        while (token.hasMoreTokens()) {                            maerIds.add(token.nextToken());                        }                    }                }                ReferenceList maerRl = new ReferenceList("microArrayExperimentalResults", maerIds);                bioEntity.addCollection(maerRl);            }            //add attribute identifier for bioEntity            id = (String) bioEntity2IdentifierMap.get((String) bioEntity.getIdentifier());            if (id != null) {                bioEntity.addAttribute(new Attribute("identifier", id));            }            results.add(bioEntity);        }        return results;    }