syncMap.put("Address", "CompanyAddress");
syncMap.put("City", "CompanyCity");
syncMap.put("State", "CompanyState");
syncMap.put("ZIP", "CompanyZIP");
syncMap.put("@Now", "LastSync");
DocumentSyncHelper helper = new DocumentSyncHelper(DocumentSyncHelper.Strategy.CREATE_AND_REPLACE, syncMap);
helper.setTargetServer(targetDb.getServer());
helper.setTargetFilepath(targetDb.getFilePath());
helper.setTargetLookupView("byCompanyID");
helper.setTargetDatabase(targetDb, "byCompanyID");
helper.setSourceKeyFormula("CompID");
java.util.Date sinceDate = new java.util.Date(0);
org.openntf.domino.DateTime dt = sourceDb.getAncestorSession().createDateTime(sinceDate);
org.openntf.domino.DocumentCollection sourceCollection = sourceDb.getModifiedDocuments(dt);
helper.process(sourceCollection);
helper.setTransactionRule(DocumentSyncHelper.TransactionRule.COMMIT_EVERY_SOURCE);
helper.processSince(sourceDb, sinceDate);
}