if (account == null) {
throw new WebApplicationException(Status.NOT_FOUND);
}
try {
account.disableBalance();
save(account);
} catch (InvalidStateException ex) {
throw new WebApplicationException(
Response.status(Status.CONFLICT)
.entity("Could not disable balance for account")