* form is ArchiveWriter new/modified argive command list
*/
- static Log log = LogFactory.getLog("org.vamsas.test.simpleclient.ArchiveWriter");
+ static Log log = LogFactory.getLog(ArchiveWriter.class);
private static void mergeVecs(Object[] destvec, Object[] svec1, Object[] svec2) {
int i;
if (!ht.containsKey(appdatas[i].getUrn())) {
Hashtable aphash = new Hashtable();
ht.put(appdatas[i].getUrn(), aphash);
- aphash.put(appdatas[i], appdatas[i].getAppDataChoice().getDataReference());
+ aphash.put(appdatas[i], appdatas[i].getDataReference());
} else {
// ensure urns and references are unique
/**
* safely copies an appData from one archive to another.
* @param darc destination archive
- * @param dest destination document object
+ * @param dest destination document Vobject
* @param sarc source archive reader
* @param entry application data to be copied from source archive
*/
/** TODO: LATER: should verify that all ids really are unique in newly merged document. If not then what ?
* investigate possibility of having an id translation between appDatas and the core document -
* the mapping is stored when an external application performs a merge, but when the owning
- * Application accesses the object, the vorba_id is updated to the new one when it writes its
+ * Application accesses the Vobject, the vorba_id is updated to the new one when it writes its
* references in to its appdata again
*/
if (source.getApplicationDataCount()>0) {