final long createTime = Timer.getTime(new Command() {
@Override
public void execute() {
for (int i = 0; i < count; i++) {
final Dto dto = new Dto();
dto.setModule(Contact.class.getSimpleName());
final String suffix = String.valueOf(r.nextLong());
dto.set("name", "some contact" + suffix);
dto.set("email", "email" + suffix);
dto.set("name", "name" + suffix);
dto.set("city", "city" + suffix);
dto.set("phone", "phone" + suffix);
dto.set("emailOptedOut", r.nextBoolean());
dto.set("doNotCall", r.nextBoolean());
dto.set("mobile", "mobile" + suffix);
dto.set("doNotCallExplanation", "explanation" + suffix);
dto.set("bankAccountData", "bank" + suffix);
dto.set("profession", "Student" + suffix);
dto.set("study", "Biology" + suffix);
ids[i] = createService.create(dto);
}
}
});