private Terminal terminal;
private boolean initiatorMode = false;
public LlcpService(NdefListener ndefListener, TerminalStatusListener statusListener) {
this.ndefListener = ndefListener;
TerminalHandler terminalHandler = new TerminalHandler();
terminalHandler.addTerminal(new AcsTerminal());
terminalHandler.addTerminal(new SclTerminal());
terminal = terminalHandler.getAvailableTerminal();
terminal.setStatusListener(statusListener);
terminal.setNdefListener(ndefListener);
log.info("Connected to " + terminal.getTerminalName());
}