@PUT
 public void updatePayment(@PathParam("id") Long id, PaymentDTO payment) {
   paymentLogicService.updatePayment(payment);
 }
 @GET
 @Path("{id}")
 public PaymentDTO getPayment(@PathParam("id") Long id) {
   return paymentLogicService.getPayment(id);
 }
 @DELETE
 @Path("{id}")
 public void deletePayment(@PathParam("id") Long id) {
   paymentLogicService.deletePayment(id);
 }
 @GET
 public PaymentPageDTO getPayments(
     @QueryParam("page") Integer page, @QueryParam("maxRecords") Integer maxRecords) {
   return paymentLogicService.getPayments(page, maxRecords);
 }
 @POST
 public PaymentDTO createPayment(PaymentDTO payment) {
   return paymentLogicService.createPayment(payment);
 }