}
PrinterState prnState = (PrinterState)service.getAttribute(PrinterState.class);
if(prnState == PrinterState.STOPPED){
PrinterStateReasons prnStateReasons = (PrinterStateReasons)service.getAttribute(PrinterStateReasons.class);
if((prnStateReasons != null) && (prnStateReasons.containsKey(PrinterStateReason.SHUTDOWN))){
throw new PrintException("PrintService is no longer available.");
}
}
if((PrinterIsAcceptingJobs)(service.getAttribute(PrinterIsAcceptingJobs.class)) == PrinterIsAcceptingJobs.NOT_ACCEPTING_JOBS){