class OrderServiceImpl implements OrderService {

    @Override
    public void initOrder(Order order, HttpHeaders headers) {
        Order orderTemp = orderRepository.findById(order.getId());
        if (orderTemp == null) {
            orderRepository.save(order);
        } else {
            OrderServiceImpl.LOGGER.info("[Order Service][Init Order] Order Already Exists ID: {}", order.getId());
        }
    }

}