private static PrintService findPrintService() {
        DocFlavor myFormat = DocFlavor.SERVICE_FORMATTED.PRINTABLE;
        PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();

        PrintService[] printers = PrintServiceLookup.lookupPrintServices(myFormat, aset);
        PrintService printService = null;

        for (PrintService printer : printers) {
            if (printer.getName().equalsIgnoreCase(PRINTER_NAME)) {
                printService = printer;
            }
        }

        return printService;
    }