PrinterStateDocument printerState = PrinterStateDocument.Factory.newInstance();
printerState.setPrinterState(PrinterStateType.IDLE);
resourceProperty.add(printerState);
resourceProperty = m_propSet.get(PrinterPortPropertyQNames.PRINTER_NAME);
PrinterNameDocument printName = PrinterNameDocument.Factory.newInstance();
printName.setPrinterName(m_name);
resourceProperty.add(printName);
resourceProperty = m_propSet.get(PrinterPortPropertyQNames.PRINTER_IS_ACCEPTING_JOBS);
PrinterIsAcceptingJobsDocument isAccepting = PrinterIsAcceptingJobsDocument.Factory.newInstance();
isAccepting.setPrinterIsAcceptingJobs(false);