class IMSController {

    @RequestMapping(value = "/api/bookings/{bookingId}", method = RequestMethod.GET)
    @ResponseBody
    public ResponseEntity getBookingById(@PathVariable("bookingId") String bookingId)
    {
        Booking result;
        try
        {
            result = bookingService.getBookingById(bookingId);
        }
        catch (Exception e)
        {
            LOGGER.error(e.getMessage());
            return ResponseBuilder.buildError(e);
        }
        return ResponseBuilder.build(result, HTTP_OK_CODE);
    }

}