@PUT
	@Path("/{id}")
	@Consumes(MediaType.APPLICATION_JSON)
	public Response updateCustomer(final @PathParam("id") int id, Customer cust) {
		if (id != cust.getId()) {
			throw new WebApplicationException(Response.status(Status.CONFLICT)
					.entity("Cannot change id of existing customer.").build());
		}
		validateCustomer(cust);
		checkIfCustomerExists(id);
		manager.updateCustomer(id, cust);
		return Response.ok("Customer with Id " + id + " udpated successfully").build();
	}