if (seminary != null && seminary.getEquivalencies() != null && !seminary.getEquivalencies().isEmpty()) {  setEquivalencies((List) CollectionUtils.collect(seminary.getEquivalencies(), new Transformer() {  public Object transform(Object arg0) { return InfoEquivalencyWithAll.newInfoFromDomain((CourseEquivalency) arg0); } }));
final List list = new ArrayList(); setEquivalencies(list); if (seminary != null && seminary.getEquivalencies() != null) { for (final CourseEquivalency courseEquivalency : seminary.getEquivalenciesSet()) { list.add(InfoEquivalencyWithAll.newInfoFromDomain(courseEquivalency)); }
    public void copyFromDomain(Seminary seminary) {        super.copyFromDomain(seminary);        if (seminary != null && seminary.getEquivalencies() != null                && !seminary.getEquivalencies().isEmpty()) {            setEquivalencies((List) CollectionUtils.collect(seminary.getEquivalencies(),                    new Transformer() {                        public Object transform(Object arg0) {                            return InfoEquivalencyWithAll.newInfoFromDomain((CourseEquivalency) arg0);                        }                    }));        }    }