final static int SCARD_ATTR_CHANNEL_ID = 0x00020110;
public static void main(String[] args) throws ScardException, IOException, CardNotPresentException, Exception {
PcScTerminalManager manager = new PcScTerminalManager();
manager.loadConfiguration(Main.getDefaultConfFolder(), "PcScTest");
List<GenericTerminal> terminals = manager.list();
if (0 == terminals.size()) {
System.out.println("PcSc terminal not detected.");
return;
}
GenericTerminal terminal = terminals.get(2);