} else if (MetsConstants.RELATED.equals(type)) {
Map<String, Related> rmap = new HashMap<String, Related>();
metsObj.setRelatedMap(rmap);
Div[] divs = div.getDiv();
for (Div div2 : divs) {
Related related = new Related();
related.setType(div2.getTYPE());
related.setLabel(div2.getLABEL());
Mptr[] mptrs = div2.getMptr();
if (mptrs.length == 1) {
related.setPurl(mptrs[0].getHref());
rmap.put(div2.getTYPE(), related);
}
}
}
}