public int getDataCount() throws JposException { // Make sure control is opened if (!bOpen) { throw new JposException(JPOS_E_CLOSED, "Control not opened"); } // Perform the operation try { return service110.getDataCount(); } catch (JposException je) { throw je; } catch (Exception e) { throw new JposException(JPOS_E_FAILURE, "Unhandled exception from Device Service", e); } }