@Override
    public void processBatch(List<SampleEvent> sampleEvents) throws RemoteException {
        StringBuilder b = new StringBuilder();
        for (SampleEvent se : sampleEvents) {
            JSONObject sample = Utils.getJSONObject(se);
            SamplesUploader.addSample(sample);
        }
    }