public void processLoans() {
		// TODO Prepare receive loan request message request.
//		ReceiveMessageRequest receiveMessageRequest = new ReceiveMessageRequest().withMessageAttributeNames("uuid");
		ReceiveMessageRequest receiveMessageRequest = new ReceiveMessageRequest();
		receiveMessageRequest.setQueueUrl(requestQ);
		receiveMessageRequest.setMessageAttributeNames(Arrays.asList("uuid"));
		
		while (true) {
			// Prepare loan response message request.
			SendMessageRequest loanResponseMessageRequest = new SendMessageRequest();
			loanResponseMessageRequest.setQueueUrl(responseQ);
			// TODO Check request queue for loan requests.
			 List<Message> messages = sqs.receiveMessage(receiveMessageRequest).getMessages();
			for (Message loanRequestMessage : messages) {
				StringTokenizer st = new StringTokenizer(
						loanRequestMessage.getBody(), ",");
				double salary = Double.valueOf(st.nextToken().trim())
						.doubleValue();
				double loanAmt = Double.valueOf(st.nextToken().trim())
						.doubleValue();
			//	// Determine whether to accept or decline the loan request
				boolean accepted = false;
				if (loanAmt < 200000) {
					accepted = (salary / loanAmt) > .25;
				} else {
					accepted = (salary / loanAmt) > .33;
				}
				System.out.println("" + "Percent = " + (salary / loanAmt)
						+ ", loan is " + (accepted ? "Accepted!" : "Declined"));
				loanResponseMessageRequest
						.setMessageBody((accepted ? "Accepted your request for $"
								+ loanAmt
								: "Declined your request for $" + loanAmt));
			
				for (Entry<String, MessageAttributeValue> entry : loanRequestMessage
						.getMessageAttributes().entrySet()) {
					if (entry.getKey().equals("uuid")) {
						loanResponseMessageRequest.addMessageAttributesEntry(
								"uuid", entry.getValue());
					}
				}
				// TODO Delete loan request message from queue
				String messageReceiptHandle = loanRequestMessage.getReceiptHandle();
				sqs.deleteMessage(new DeleteMessageRequest(requestQ, messageReceiptHandle));
				// TODO Send out the response
				sqs.sendMessage(loanResponseMessageRequest);
			}

			try {
				Thread.sleep(5000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}

		}
	}