@SuppressWarnings("unchecked")
	@Override
	public void handleIt(Object... args) {
		// Getting socket from passed arguments
		sock = (Socket) args[0];

		// Creating a GetOnlineUsersBean object to be written to the server.
		GetOnlineUsersBean getOnlineUsersObject = new GetOnlineUsersBean();

		try {
			// Creating streams to communicate with server
			JSONOutputStream jsonOut = new JSONOutputStream(
					sock.getOutputStream());
			JSONInputStream jsonIn = new JSONInputStream(sock.getInputStream());

			// Writing getOnlineUsersObject to the server
			jsonOut.writeObject(getOnlineUsersObject);

			// Processing response, assuming the server will write an array
			// of strings back to the client.
			ArrayList<String> onlineUsers = (ArrayList<String>) jsonIn.readObject();

			if (onlineUsers == null) {
				System.out.println("\nRequest for online users unsuccessful. " +
								   "Object return from the server is null");
			} else {

				System.out.println("       Online Users");
				System.out.println("-------------------------");

				// Iterating through onlineUsers and printing them to the
				// console
				int count = 0;
				for (String s : onlineUsers) {
					// Prints 3 names per line
					System.out.print("| " + s + " ");
					count++;
					if (count == 3) {
						System.out.println("\n-------------------------");
						count = 0;
					}
				}
				System.out.println();
			}

		} catch (IOException e) {
			e.printStackTrace();
		} catch (JSONException e) {
			e.printStackTrace();

		}

	}