Simulate pos machine with java for NCI