PrinterReferenceDocument printerRefDoc = PrinterReferenceDocument.Factory.newInstance();
printerRefDoc.setPrinterReference((EndpointReferenceType) ((XmlBeansEndpointReference)getEndpointReference()).getXmlObject( Constants.NS_URI_ADDRESSING_2004_08 ));
resourceProperty.add(printerRefDoc);
resourceProperty = m_propSet.get(PrinterPortPropertyQNames.PRINTER_STATE);
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);