/** * copyAttr Copy the named attribute of the current source node into the current node * * @param sAttrName name of the attribute to be copied * @param nfrSource handler on the opened source file */ protected void copyAttr(String sAttrName, NexusFileReader nfrSource) throws NexusException { PathNexus pnSrcPath = nfrSource.getCurrentRealPath().clone(); PathNexus pnTgtPath = getCurrentRealPath().clone(); writeAttr(sAttrName, nfrSource.readAttr(sAttrName, pnSrcPath), getCurrentRealPath()); openPath(pnTgtPath); nfrSource.openPath(pnSrcPath); }