persist(claim);
return claim;
}
private void addItem(final Claim claim, final int days, final double amount, final String description) {
final ClaimItem claimItem = newTransientInstance(ClaimItem.class);
Date date = new Date();
date = date.add(0, 0, days);
claimItem.setDateIncurred(date);
claimItem.setDescription(description);
claimItem.setAmount(new Money(amount, "USD"));
persist(claimItem);
claim.addToItems(claimItem);
}