/****************************************************************************
 * Copyright (C) 2012-2017 HS Coburg.
 * All rights reserved.
 * Contact: ecsec GmbH (info@ecsec.de)
 *
 * This file is part of the Open eCard App.
 *
 * GNU General Public License Usage
 * This file may be used under the terms of the GNU General Public
 * License version 3.0 as published by the Free Software Foundation
 * and appearing in the file LICENSE.GPL included in the packaging of
 * this file. Please review the following information to ensure the
 * GNU General Public License version 3.0 requirements will be met:
 * http://www.gnu.org/copyleft/gpl.html.
 *
 * Other Usage
 * Alternatively, this file may be used in accordance with the terms
 * and conditions contained in a signed written agreement between
 * you and ecsec GmbH.
 *
 ***************************************************************************/

package org.openecard.scio;

import java.io.IOException;
import org.openecard.common.ifd.scio.NoSuchTerminal;
import org.openecard.common.ifd.scio.SCIOException;
import org.openecard.common.ifd.scio.SCIOTerminals;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
 * NFC specific implementation of the TerminalFactory
 *
 * @author Dirk Petrautzki
 * @author Mike Prechtl
 */
public class IOSNFCFactory implements org.openecard.common.ifd.scio.TerminalFactory {

    private static final String ALGORITHM = "IOSNFC";

    private static final Logger LOG = LoggerFactory.getLogger(IOSNFCFactory.class);
    private final NFCCardTerminal terminal;
    private final NFCCardTerminals terminals;

    private static IOSNFCFactory staticInstance;

    public IOSNFCFactory() throws NoSuchTerminal, IOException {
	this.terminal = new NFCCardTerminal();
	this.terminals = new NFCCardTerminals(terminal);
//	this.terminal.setNFCCard(new IOSNFCCard(this.terminal));
	staticInstance = this;
    }

    @Override
    public String getType() {
	return ALGORITHM;
    }

    @Override
    public SCIOTerminals terminals() {
	return terminals;
    }

    public static void triggerNFC() throws IOException, SCIOException {
	IOSNFCCard card = new IOSNFCCard(staticInstance.terminal);
	card.connect();
	staticInstance.terminal.setNFCCard(card);
	byte[] bar = {(byte) 0x00, (byte) 0x4a, (byte) 0x00, (byte) 0x0c};
	System.out.println("resp: " + card.transceive(bar));
    }

}

@@ -2240,16 +2240,44 @@
 (card);%0A
+%09LOG.debug(%22Sending apdu%22);%0A
 %09byte%5B%5D 
@@ -2341,26 +2341,17 @@
 %7D;%0A%09
-System.out.println
+LOG.debug
 (%22re

Add logging