} else if ("surepos".equals(sPrinterType)) {
addPrinter(sPrinterIndex, new DevicePrinterESCPOS(pws.getPrinterWritter(sPrinterParam1, sPrinterParam2), new CodesSurePOS(), new UnicodeTranslatorSurePOS()));
} else if ("plain".equals(sPrinterType)) {
addPrinter(sPrinterIndex, new DevicePrinterPlain(pws.getPrinterWritter(sPrinterParam1, sPrinterParam2)));
} else if ("bash".equals(sPrinterType)) {
addPrinter(sPrinterIndex, new DevicePrinterFile(sPrinterParam1, sPrinterParam2));
} else if ("javapos".equals(sPrinterType)) {
addPrinter(sPrinterIndex, new DevicePrinterJavaPOS(sPrinterParam1, sPrinterParam2));
}
} catch (TicketPrinterException e) {
logger.log(Level.WARNING, e.getMessage(), e);