public void run() {
{
try {
MP300TC2TerminalManager.initContext();
MP300TC2TerminalManager manager = new MP300TC2TerminalManager();
List<GenericTerminal> terminals = manager.list();
MP300TC2Terminal terminal = (MP300TC2Terminal) terminals.get(0);
terminal.addLogHandler(new ScardPrintStreamLogHandler(System.out));
System.out.println("Try to connect to " + terminal.getName());
terminal.coldConnect();
Apdu apdu = new Apdu(0x00, 0x8A, 0x00, 0x44, 0x02);