}
} catch (SQLException e) {
String msg = "Failed to insert the invoice subscription item, item id: " +
item.getId() + ", invoice subscription id: " + invoiceSubscriptionId + ".";
log.error(msg, e);
throw new BillingException(msg, e);
} finally {
try {
if (ps != null) {
ps.close();
}
} catch (SQLException ex) {
String msg = RegistryConstants.RESULT_SET_PREPARED_STATEMENT_CLOSE_ERROR
+ ex.getMessage();
log.error(msg, ex);
throw new BillingException(msg, ex);
}
try {
if (result != null) {
result.close();