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