(PrinterPortHome) initialContext.lookup( PrinterPortHome.HOME_LOCATION );
PrinterPortResource instance =
(PrinterPortResource) printerPortHome.createPrinter( getResourceContext( ) );
//get Resource Prop for Printer Ref
XmlBeansResourceProperty prop =
(XmlBeansResourceProperty) instance.getResourcePropertySet( ).get( PrinterPortPropertyQNames.PRINTER_REFERENCE );
//set the Printer EPR on the response
createPrinterResponse.setPrinterReference( (EndpointReferenceType) prop.toXmlObjects( )[0] );
}
catch ( Exception e )
{
throw new ResourceUnknownFaultException( new NamespaceVersionHolderImpl( ),
new ResourceUnknownException( null,