if (surfaceType != null && surfaceType.hasAttribute("value")) { tgtItem.addAttribute(new Attribute("surfaceType",
if (surfaceType.hasAttribute("value")) { tgtItem.addAttribute(new Attribute("surfaceType",
    protected void translateMicroArraySlideDesign(Item srcItem, Item tgtItem)        throws ObjectStoreException {        // move descriptions reference list        promoteCollection(srcItem, "descriptions", "annotations", tgtItem, "descriptions");        // change substrateType reference to attribute        Item surfaceType = ItemHelper.convert(srcItemReader                                .getItemById(srcItem.getReference("surfaceType").getRefId()));        if (surfaceType != null && surfaceType.hasAttribute("value")) {            tgtItem.addAttribute(new Attribute("surfaceType",                                               surfaceType.getAttribute("value").getValue()));        }         if (srcItem.hasAttribute("version")) {            tgtItem.addAttribute(new Attribute("version",                                               srcItem.getAttribute("version").getValue()));         }         if (srcItem.hasAttribute("name")) {            tgtItem.addAttribute(new Attribute("name",                                               srcItem.getAttribute("name").getValue()));         }    }