private static void handleDeltas(long[] push, long[] pull) throws Exception {     
        if (push.length > 0) {
            for (long i : push) storeB.addIfNew(i, storeA.getValue(i));
            System.out.print("push[" + push.length + "]: ");
            for (long i : push) System.out.print(i + " "); System.out.println();
        }

        if (pull.length > 0) {
            for (long i : pull) storeA.addIfNew(i, storeB.getValue(i));
            System.out.print("pull[" + pull.length + "]: ");
            for (long i : pull) System.out.print(i + " "); System.out.println();
        }
    }