protected LegatoTokenResponse tokenizeCard(HttpsConnector connector, String cardNum, String cvd, int expiryMonth, int expiryYear) {
		LegatoTokenRequest tokenRequest = new LegatoTokenRequest();
		tokenRequest.number = cardNum;
		tokenRequest.expiryMonth = expiryMonth;
		tokenRequest.expiryYear = expiryYear;
		tokenRequest.cvd = cvd;

		String url = "https://www.beanstream.com/scripts/tokenization/tokens";
		String output = "";
		try {
			output = connector.ProcessTransaction(HttpMethod.post, url,
					tokenRequest);
		} catch (BeanstreamApiException ex) {
			Logger.getLogger(SampleTransactions.class.getName()).log(
					Level.SEVERE, null, ex);
		}
		Gson gson = new Gson();
		LegatoTokenResponse tokenResponse = gson.fromJson(output,
				LegatoTokenResponse.class);

		System.out.println("token: " + output);
		return tokenResponse;
	}