if (drawer == null) {
drawer = new CashDrawer[10];
}
// create the instance
drawer[i-1] = new CashDrawer(cashDrawerDevice, -1);
try {
drawer[i-1].open();
} catch (jpos.JposException jpe) {
Debug.logError(jpe, "JPOS Exception", module);
throw new GeneralException(jpe.getOrigException());