public void printJobRequiresAttention(PrintJobEvent pje) {
        System.out.println("Job requires attention");
        PrinterStateReasons psr = pje.getPrintJob().getPrintService().getAttribute(PrinterStateReasons.class);
        if (psr != null) {
            Set<PrinterStateReason> errors = psr.printerStateReasonSet(Severity.REPORT);
            for (PrinterStateReason reason : errors)
                System.out.printf(" Reason : %s", reason.getName());
            System.out.println();
        }
    }