converter.write(objectToAddTo, data);
<BUG>Bin[] bins = new Bin[values.size()];
int x = 0;</BUG>
for(Map.Entry<String, Long> entry : values.entrySet()){
Bin newBin = new Bin(entry.getKey(), entry.getValue());
<BUG>bins[x] = newBin;
x++;</BUG>
}
<BUG>this.client.add(null, data.getKey(), bins);
} catch (AerospikeException o_O) {</BUG>
DataAccessException translatedException = exceptionTranslator.translateExceptionIfPossible(o_O);

converter.write(objectToAddTo, data);
Operation[] operations = new Operation[values.size()+1];
int x = 0;
for(Map.Entry<String, Long> entry : values.entrySet()){
Bin newBin = new Bin(entry.getKey(), entry.getValue());
operations[x] = Operation.add(newBin);
x++;
}
operations[x] = Operation.get();
Record record = this.client.operate(null, data.getKey(), operations);
data.setRecord(record);
result = (T) converter.read(objectToAddTo.getClass(), data);
} catch (AerospikeException o_O) {
DataAccessException translatedException = exceptionTranslator.translateExceptionIfPossible(o_O);
