/** * Deletes conference from the reservation system. * * @param id identifier of the conference which has to be removed. * @return one of {@link ReservationSystem} "result" constants. */ private int deleteConference(Number id) { // Delete conference try { logger.info("Deleting conference: " + id); ApiResult result = api.deleteConference(id); if (result.getStatusCode() == 200) { logger.info("Conference " + id + " deleted - OK"); return RESULT_OK; } else { logger.error("DELETE API ERROR: " + result); } } catch (FaultTolerantRESTRequest.RetryExhaustedException e) { logger.error(e, e); } return RESULT_INTERNAL_ERROR; }