@POST
	@Consumes(MediaType.APPLICATION_JSON)
	public Response createCustomer(Customer customer) {
		validateCustomer(customer);
		Customer customerWithId = manager.getCustomerWithId(customer.getId());
		if (customerWithId != null) {
			throw new WebApplicationException(Response
					.status(Status.CONFLICT)
					.entity("Customer with id " + customer.getId() + " already exists.")
					.build());
		}

		manager.addCustomer(customer);
		return Response.status(Status.CREATED)
				.entity("Customer with Id " + customer.getId() + " created successfully.")
				.build();
	}