private void validateCustomer(Customer customer) {
		if (customer.getId() < 0) {
			throw new WebApplicationException(Response
					.status(Status.INTERNAL_SERVER_ERROR)
					.entity("Invalid Customer id " + customer.getId()).build());
		}
		if (Strings.isNullOrEmpty(customer.getName())
				|| customer.getName().trim().isEmpty()) {
			throw new WebApplicationException(Response
					.status(Status.INTERNAL_SERVER_ERROR)
					.entity("Invalid Customer Name : " + customer.getName())
					.build());
		}
		if (Strings.isNullOrEmpty(customer.getAddress())
				|| customer.getAddress().trim().isEmpty()) {
			throw new WebApplicationException(Response
					.status(Status.INTERNAL_SERVER_ERROR)
					.entity("Invalid Customer Address : "
							+ customer.getAddress()).build());
		}
	}