public void run(String[] args) throws Exception {

		if (args.length == 1) {
			if (PCSCManager.getTerminal() != null) {

				Logger.log("Terminal: " + PCSCManager.getTerminal().toString()
						+ "\n");
				Logger
						.log("Cartao inteligente: "
								+ (PCSCManager.getTerminal().isCardPresent() ? "presente"
										: "nao presente") + "\n");
			} else
				Logger.log("Leitora nao conectada.\n");
		} else if (args[1].equals("-list")) {
			List<CardTerminal> terminals = PCSCManager.getTerminalsList();

			int i = 0;
			for (CardTerminal cardTerminal : terminals)
				Logger.log(i++ + " " + cardTerminal);
		}
	}