LOG.info("UpdateEquivalentInterproFeatures - STORING RESULTS");
LOG.debug("UpdateEquivalentInterproFeatures - STORING RESULTS");
    public void updateEquivalentFeatures() throws ObjectStoreException {        Query pdq = new Query();        pdq.setDistinct(false);        QueryClass pd1QC = new QueryClass(ProteinFeature.class);        pdq.addToSelect(pd1QC);        pdq.addFrom(pd1QC);        pdq.addToOrderBy(pd1QC);        QueryClass pd2QC = new QueryClass(ProteinFeature.class);        pdq.addToSelect(pd2QC);        pdq.addFrom(pd2QC);        ConstraintSet cs = new ConstraintSet(ConstraintOp.AND);        QueryField pd1InterproIdQF = new QueryField(pd1QC, "interproId");        QueryField pd2InterproIdQF = new QueryField(pd2QC, "interproId");        SimpleConstraint equalIproIdSC =                new SimpleConstraint(pd1InterproIdQF, ConstraintOp.EQUALS, pd2InterproIdQF);        cs.addConstraint(equalIproIdSC);        QueryField pd1IdQF = new QueryField(pd1QC, "id");        QueryField pd2IdQF = new QueryField(pd2QC, "id");        SimpleConstraint notEqualIntermineIdSC =                new SimpleConstraint(pd1IdQF, ConstraintOp.NOT_EQUALS, pd2IdQF);        cs.addConstraint(notEqualIntermineIdSC);        pdq.setConstraint(cs);        //keep a map of interpro id's to sets of their child ProteinFeature objects...        LOG.info("UpdateEquivalentInterproFeatures - BUILDING FEATURE PAIRS");        Map proteinFeaturePairsMappedByInterproId = null;        try {            proteinFeaturePairsMappedByInterproId = buildInterproIdIndexedMapFromQuery(pdq);        } catch (IllegalAccessException e) {            throw new ObjectStoreException(e);        }        //ok, now we need to map the domains to each other - but NOT to themselves!!!        LOG.info("UpdateEquivalentInterproFeatures - SETTING EQUIVALENT FEATURE MAPPINGS");        setEquivalentProteinFeatureMappings(proteinFeaturePairsMappedByInterproId);        //ok, now we should store any data...        LOG.info("UpdateEquivalentInterproFeatures - STORING RESULTS");        storeEquivalentFeatures(proteinFeaturePairsMappedByInterproId);    }